Topic "CR dropped during a binary transfer"

Author Message



I had SFTP evrsion 4.16 and I was using scripting to transfer file toward a unix system.

The script says so :
option batch on
option confirm off
option transfer binary

Log file shows a binary transfer too.

Since it is a binary transfer I would expect that WINSCP would not try to do anything with the CR and / or LF.

But indeed every 0x10000 or so, a CR was added to the file I transferred. Since I suspected first the remote server I locally installed a SSH server for windows. And i got the same behavior with a binary transfer to

Switching to version 4.21 beta stopped the behavior, but it might be worth having a look what provoked this.
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26858
Location: Prague, Czechia
Can you post a log file both from 4.1.6 and 4.2.1?

To generate log file, enable logging, log in to your server and do the operation and only the operation that causes the error. For posting extensive logs you may use pastebin or similar application. 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.
Martin Prikryl

You can post new topics in this forum


What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License