Anonymous wrote:
Prior to the problem occurrance I was uploading a file to a host site via the following script:
# Connect to sftp server using private and public keys
open [host address] -privatekey="C:\Applications\Production\sFTPKey\ALIProPrivKey3.ppk"
# Force binary mode transfer
#option transfer binary
# Force text mode transfer
#option transfer text
# Set confirmation prompts off
option confirm off
# Upload file to the remote directory
put "C:\Applications\Production\PSALI\UploadFiles\406_7734_C.dat"
# Close and disconnect
Close
Exit
This script has worked fine for close to 7 years. After the upgrade, this stopped performing. We played around with the WinSCP user interface settings but that did nothing to solve the problem. We then took a look at the script above and removed the # from the explicit command "option transfer binary". This solved the problem.
As I consider things, I'm not sure why things worked correctly in the past. Maybe that was the bug?
Thank you--
--Dean Arnold
Note: the problem did not occur using the user interface (editor?). We could drag and drop files with no change in the end of line characters.