Page 1 of 1

Files corrupted during download

Posted: Thu Dec 28, 2017 12:29 am
by seattle
When files are dl'ed from ftp server, the log indicates that everything is fine. HOWEVER, our clients are unable to open the files. They are using different OS and different ftp clients, the files (pdf's mostly) are not openable due to being deemed corrupt.
This happens regardless of ftp/sftp being used, even plain ftp.
Turning off ModZ did not help.

It does not happen when dl'ing via a web browser and https.

Re: Files corrupted during download

Posted: Thu Dec 28, 2017 1:05 am
by FTP
So are the downloaded files with 0-byte size? both FTP and SFTP? with which FTP/SFTP client software?

Re: Files corrupted during download

Posted: Thu Dec 28, 2017 7:04 pm
by seattle
Did a lot of testing last night and i think i have it narrowed down a bit.

I can duplicate the problem with WinSCP SSH protocol, The files are being created, they are not 0 bytes.

If I use FileZilla with any protocol , Windows builtin ftp , an Android app called AnyFTP with FTP-ES the files come on over with no problem. WinSCP with no security or with FTP-ES works .

so the problem is "just" with WinSCP's SSH. The firewall is not an issue as even when i use WinSCP SSH on the LAN to dl files the pdf's are corrupt. I did not come up with anything informative doing an online search.

( btw: it would have been nice to have WingFTP event manager for OnFileUpload and OnFileDownload working. the OnUserLoggedIn is working.)

Re: Files corrupted during download

Posted: Thu Jan 04, 2018 8:17 pm
by seattle
no response?
{sigh}
How can I display a login message to the user that says WinSCP is a problem if the server sees that the client is WinSCP? Either replacing or appending to the standard connection message.

Re: Files corrupted during download

Posted: Thu Jan 04, 2018 9:37 pm
by seattle
Clients using Java Secure Channel library also can not dl files .

might as well give up and go to a different ftp server.

Re: Files corrupted during download

Posted: Tue Jan 09, 2018 4:14 am
by FTP
Yes, the SFTP downloaded file will be corrupted with WinSCP, this bug was introduced in v5.0.1 for Windows version. Now the new version 5.0.5 fixed it and you may upgrade to the new version.

Re: Files corrupted during download

Posted: Wed Jan 10, 2018 8:31 pm
by seattle
Did you also fix the bugs of the "Execute Program" not working with
OnFileDownloaded and OnFileUploaded events for any protocol?

(OnUserLoggedIn's "Execute Program" does seem to work.)

Re: Files corrupted during download

Posted: Thu Jan 11, 2018 7:31 am
by FTP
There is no such issue, the 3rd party program can be started , maybe it won't show GUI because WingFTP is running as system service by default, anyway, you can check the running process under task manager.