Files corrupted during download

Please post here if you have problems in using Wing FTP Server.
Post Reply
seattle
Posts: 30
Joined: Tue Nov 07, 2017 7:31 pm

Files corrupted during download

Post 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.
FTP
Site Admin
Posts: 2078
Joined: Tue Sep 29, 2009 6:09 am

Re: Files corrupted during download

Post by FTP »

So are the downloaded files with 0-byte size? both FTP and SFTP? with which FTP/SFTP client software?
seattle
Posts: 30
Joined: Tue Nov 07, 2017 7:31 pm

Re: Files corrupted during download

Post 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.)
seattle
Posts: 30
Joined: Tue Nov 07, 2017 7:31 pm

Re: Files corrupted during download

Post 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.
seattle
Posts: 30
Joined: Tue Nov 07, 2017 7:31 pm

Re: Files corrupted during download

Post 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.
FTP
Site Admin
Posts: 2078
Joined: Tue Sep 29, 2009 6:09 am

Re: Files corrupted during download

Post 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.
seattle
Posts: 30
Joined: Tue Nov 07, 2017 7:31 pm

Re: Files corrupted during download

Post 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.)
FTP
Site Admin
Posts: 2078
Joined: Tue Sep 29, 2009 6:09 am

Re: Files corrupted during download

Post 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.
Post Reply