Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

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: SFTP transfer makes file corrupt

that was the solution. thank you for your support.

Re: SFTP transfer makes file corrupt

You are uploading the file in ASCII/text mode. PDF files are binary files. Make sure you are using binary mode (what is default, btw).

hi martin

yes this happened with every transfer. I just sent you an email with the log file.


Re: SFTP transfer makes file corrupt

Does it happen with every transfer?
Please attach a full log file showing transfer that corrupts a file.

To generate log file, enable logging, log in to your server and do the operation and only the operation that causes the error. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you may email it to me. You will find my address (if you log in) in my forum profile. Please include link back to this topic in your email. Also note in this topic that you have emailed the log.

SFTP transfer makes file corrupt


From time to time we have to transfer pdf files to another company.
Before we used WinSCP version 4.? on Windows 7 SP1 x64.
After software update of our hardware firewall sometimes we got an error,
that the file could not be transfered.
Then we updated WinSCP to version 5.1.4 build 3020 and the problem went away.
Everytime the files can be transfered now but then we got another problem.
The other company either can not open the files or can not print because the files
somehow getting corrupt.
For transfer we use SFTP-3 and in WinSCP we use commander GUI.
For testing i used another SFTP software, for example Filezilla Client and with that we
got no problems.