node-sftp-server
node-sftp-server copied to clipboard
Problems uploading a file
I'm trying to upload a file.
If I send the file (without destination) it works fine
$ sftp -P 8022 localhost <<< $'put test.txt'
If I send the file with destination it does not work. It does not enter the session writefile listener and get stucked. I've also tried to work on the realpath definition, but nothing to do.
$ sftp -P 8022 localhost <<< $'put test.txt destination'
Here the gist of the server https://gist.github.com/andreareginato/d0b449f7fbba6e4cd24676d60ce69914
Thanks in advance for your time.