Page 1 of 1

TScFTPClient - Server cannot accept argument.

Posted: Fri 18 Feb 2022 08:13
by tabu
Connection and Disconnection to the server runs without problems, renaming of a file works, so I think, the connection is not the problem.

Upload or Download works not, leads to the error "Server cannot accept argument"

Code: Select all

ScFTPClient1.Upload('c:\temp\test.csv', 'hallo.txt');

ScFTPClient1.Dowload('hallo.txt', 'c:\temp\hallo.txt');
File to download is on the server, File to upload is in the directory. Up- and Download with FileZilly without problems.

Any ideas?

Re: TScFTPClient - Server cannot accept argument.

Posted: Fri 18 Feb 2022 14:51
by YanishevskiyVI
Hi there,
This error states that the server cannot work in active mode.
To solve the issue, please set TScFTPClient.UsePassive := True

Feel free to ask in case of any further questions!

Re: TScFTPClient - Server cannot accept argument.

Posted: Mon 21 Feb 2022 17:35
by tabu
Thank you

Re: TScFTPClient - Server cannot accept argument.

Posted: Tue 22 Mar 2022 09:28
by Dimon
Feel free to contact us if you have any further questions.