Unanswered question

How could I upload data to an FTP server using a javascript?

When I use the PUT-script from the question "How could I connect to an FTP server using a javascript" I always get the server response 501 Server cannot accept argument. I googled, but did not find much about that. I also tried passiv mode with "myFTPClient.enterLocal.PassiveMode();". But then I get the TypeError: Cannot call method "PassiveMode" of undefined.

Claus-Georg P.
Claus-Georg P.

Claus-Georg P.

Level
0
26 / 100
points

Answers

Nouredine A.
Nouredine A.

Nouredine A.

Level
4
5000 / 5000
points
Team

Have you manually tried to run your FTP commands on the load generator using Active or passive mode?

You made a typo to switch to passive mode. The right syntax is myFTPClient.enterLocalPassiveMode();