Questions tagged [node-ftp]

14 questions
7
votes
2 answers

Getting a progress for an FTP-upload with node

I have an Electron app which uploads a dropped file to a predefined server with node-ftp. The upload works like a charm, but despite reading a couple of suggestions I cannot figure out how to get information on the actual progress for a…
Torf
  • 1,154
  • 11
  • 29
3
votes
1 answer

Catch Uncaught Exception error in node-ftp module

I'm using the npm ftp library: https://www.npmjs.com/package/ftp I want to upload a file on a ftp server and I want to catch errors during the connection, e.g. a wrong login. My function: const upload = () => { try { const ftpClient =…
A.Service
  • 359
  • 3
  • 6
  • 16
3
votes
1 answer

Node FTP: Multiple asynchronous calls inside loop

I know this is some async conundrum I have gotten myself into, but I am trying to download multiple files, inside the callback from the .list method of any of npm's various FTP packages. So something like this (note: JSFTP here is just a wrapper…
batjko
  • 992
  • 2
  • 13
  • 29
2
votes
0 answers

Upload e-signed Base64 PDF to FTP using nodejs

Am trying to upload or send a base64 PDF file (with e-sign) to FTP using nodejs ftp. the point here is that I can upload the file to ftp but am losing the e-signs on the file; const Client = require('ftp'); function (path, fileName,file) { …
MuhanadY
  • 752
  • 1
  • 12
  • 40
2
votes
0 answers

Upload Write stream to ftp server with Node JS

I've building an application using sockets where user can upload huge files from frontend. I'm saving the file in chunks into temp folder so that i can combine all the file once the upload is done and move to original location. But I want to move…
Mr.Throg
  • 925
  • 6
  • 21
2
votes
3 answers

Can I make node.js FTP synchronous?

I have a little FTP script which basically transfer an entire directory tree (by walking it with fs.readdir) to an FTP server one file at a time (I have to do some analysis on each file as it's uploaded hence the one-at-a-time behaviour). However,…
paxdiablo
  • 854,327
  • 234
  • 1,573
  • 1,953
1
vote
1 answer

Nodejs getting error while download files using FTP

I am using node-ftp package for FTP connection. Below code example const FTPClient = require('ftp'); const fs = require("fs"); let ftp_client = new FTPClient(); let ftpConfig = { host: '94.208.170.184', port: 21, user: '99*******', …
Sudhir
  • 835
  • 11
  • 31
1
vote
1 answer

Not able to connect to ftp server using "ftp" package from npm

I am trying to connect to Secured FTP server using package "ftp" When i connect to not secured server code works fine and all events got raised without issues and i see a content. But as long as i am trying to connect to server with acc and…
Anton
  • 1,344
  • 3
  • 15
  • 32
0
votes
0 answers

Node.js ftp and download files but the file can not be download when some special characters or Chinese in file name

Hello I have downloaded this NPM module to download file from FTP : node-ftp When download normal file its downloaded but when special characters or Chinese in file name it not download and give error file not found. file name like this…
0
votes
0 answers

Is there a clear way for handling nodejs ftp errors

I am using the following code to connect to ftp and download a file. But randomly it throws the following error and am not able to catch it in the catch block. I am not sure from where its throwing. Need your help here. Output: start ftsp…
user846445
  • 221
  • 1
  • 3
  • 14
0
votes
1 answer

How do I connect to GoDaddy's FTP server which has only a username and no password?

I am trying to download a zip file from GoDaddy's ftp server with node-ftp, but node-ftp changes empty passwords to 'anonymous@' by default in their connect function. How can I connect to their FTP server using only a username and no…
Blake Bell
  • 376
  • 5
  • 16
0
votes
1 answer

promise-ftp unknown command with ftp.get

I am using promise ftp to get a file and getting an error "unknown command". Putting debug mode on gives me the following output. [connection] > 'USER ecopo108' [connection] < '331 User userrrrr OK. Password required\r\n' [parser] < '331 User…
Devonnnn
  • 25
  • 7
0
votes
0 answers

How to handle simultaneous FTP uploads with node-ftp

my nodejs web app needs to send an xml via ftp, when i press the submit button the application works perfectly, but when me and my colleague tried to press simoultaneously the button the application return an error: Error: Unable to parse PASV…
Gargantua
  • 420
  • 2
  • 5
  • 17
-3
votes
1 answer

Node-FTP duplicating operations upon uploading a file

As there are things called 'callback hell'. It was the only way I can get a file from a server to my vps pc, and upload it. The process was simple: Download a .json file from the ftp server Edit the .json file on the pc Upload the .json file and…