Files corrupted during download

Please post here if you have problems in using Wing FTP Server.

Files corrupted during download

Postby seattle » Thu Dec 28, 2017 12:29 am

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.
seattle
 
posts 11
 
joined Tue Nov 07, 2017 7:31 pm

Re: Files corrupted during download

Postby FTP » Thu Dec 28, 2017 1:05 am

So are the downloaded files with 0-byte size? both FTP and SFTP? with which FTP/SFTP client software?
FTP
Site Admin
 
posts 1565
 
joined Tue Sep 29, 2009 6:09 am

Re: Files corrupted during download

Postby seattle » Thu Dec 28, 2017 7:04 pm

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 11
 
joined Tue Nov 07, 2017 7:31 pm

Re: Files corrupted during download

Postby seattle » Thu Jan 04, 2018 8:17 pm

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 11
 
joined Tue Nov 07, 2017 7:31 pm

Re: Files corrupted during download

Postby seattle » Thu Jan 04, 2018 9:37 pm

Clients using Java Secure Channel library also can not dl files .

might as well give up and go to a different ftp server.
seattle
 
posts 11
 
joined Tue Nov 07, 2017 7:31 pm

Re: Files corrupted during download

Postby FTP » Tue Jan 09, 2018 4:14 am

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.
FTP
Site Admin
 
posts 1565
 
joined Tue Sep 29, 2009 6:09 am

Re: Files corrupted during download

Postby seattle » Wed Jan 10, 2018 8:31 pm

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.)
seattle
 
posts 11
 
joined Tue Nov 07, 2017 7:31 pm

Re: Files corrupted during download

Postby FTP » Thu Jan 11, 2018 7:31 am

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.
FTP
Site Admin
 
posts 1565
 
joined Tue Sep 29, 2009 6:09 am


Return to Support

Who is online

Users browsing this forum: Google [Bot] and 1 guest