Post a reply

Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)


Topic review


Re: FTP download fails after SIZE command

The API specifications says it clearly:

string remotePath: Full path to remote directory followed by slash and wildcard to select files or subdirectories to download.

You can use Session.CombinePaths(path, "*") to append the wildcard.

FTP download fails after SIZE command


I'm using the .NET assembly version 5.9.1 to download a file from a FTP server, but after the SIZE command it fails. When I'm using the client UI it works perfect, with the client UI the SIZE command fails but it continues downloading the file with the RETR command.

Attached you can find the logs for the .NET assembly and the client ui.

I've found a similar topic here:

The workaround (explained in this other topic) by appending the * (wildcard) at the remote path file name works, but is it possible to add a configuration or something else to allow this kind of downloads (without appending the wildcard)?

Thanks in advance!