Closed aiswarya4confianz closed 6 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
ftpClient.on('ready', function () { ftpClient.put("image.jpg", "one.jpg",false, function (err) { if (err) { throw err; } ftpClient.end(); }); });
Downloading to a temp file and then uploading to server resolved my issue
how you set the path location in your ftp?
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