mscdex / node-ftp

An FTP client module for node.js
MIT License
1.13k stars 243 forks source link

Image Uploaded as an empty File #204

Closed aiswarya4confianz closed 7 years ago

aiswarya4confianz commented 7 years ago

When an image is uploaded, "one.jpg" an empty file is created. Below mentioned is my code. ftpClient.on('ready', function () { ftpClient.put("image.jpg", "one.jpg",false, function (err) { if (err) { throw err; } ftpClient.end(); }); }); Thanks

aiswarya4confianz commented 7 years ago

Downloading to a temp file and then uploading to server resolved my issue

GuilhermeHausz commented 3 years ago

how you set the path location in your ftp?