Replies: 1 comment
-
Yep! Absolutely. You'll want to write your own https://github.com/autovance/ftp-srv#writefilename-append-start Here is the default implementation: https://github.com/autovance/ftp-srv/blob/master/src/fs.js#L79 For example, we use this write function to store our files in S3 and expose a purely virtual file system to the client. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
connection.on('STOR', (error, fileName) => { // upload
const text = ???
console.log(text)
})
1 Is there any way to read incoming file at this step without instantiating a new fs object ?
2 How can i decide whether save the incoming file ?
Beta Was this translation helpful? Give feedback.
All reactions