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.
Files corrupted during download
-
- Site Admin
- Posts: 2084
- Joined: Tue Sep 29, 2009 6:09 am
Re: Files corrupted during download
So are the downloaded files with 0-byte size? both FTP and SFTP? with which FTP/SFTP client software?
-
- Posts: 31
- Joined: Tue Nov 07, 2017 7:31 pm
Re: Files corrupted during download
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.)
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.)
-
- Posts: 31
- Joined: Tue Nov 07, 2017 7:31 pm
Re: Files corrupted during download
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.
{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.
-
- Posts: 31
- Joined: Tue Nov 07, 2017 7:31 pm
Re: Files corrupted during download
Clients using Java Secure Channel library also can not dl files .
might as well give up and go to a different ftp server.
might as well give up and go to a different ftp server.
-
- Site Admin
- Posts: 2084
- Joined: Tue Sep 29, 2009 6:09 am
Re: Files corrupted during download
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.
-
- Posts: 31
- Joined: Tue Nov 07, 2017 7:31 pm
Re: Files corrupted during download
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.)
OnFileDownloaded and OnFileUploaded events for any protocol?
(OnUserLoggedIn's "Execute Program" does seem to work.)
-
- Site Admin
- Posts: 2084
- Joined: Tue Sep 29, 2009 6:09 am
Re: Files corrupted during download
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.