When WinSCP uploads any file less than about 100KB, and the destination Windows SFTP server has a same-named file, no confirmation box appears and the file on the server is auto-replaced.
When uploading to a Linux system running the built-in OpenSSH, the confirmation box appears as expected for all duplicate files, regardless of size.
The SFTP servers are these free Windows-based ones:
freeSSHd (<invalid hyperlink removed by admin>) and
Core FTP mini-sftp-server.
I've not tried it on a Win-based OpenSSH install.
Environment:
- Version of WinSCP: v4.0.3 and v3.8.2
- Protocol: SFTP-3 (when connected to either freeSSHd or CoreFTP servers)
- Interface style: Norton Commander and Explorer view
- Transfer mode: happens if set to either automatic or binary; didn't test for text
To reproduce the issue:
- install CoreFTP mini-SFTP-server (simpler to set up) onto a Windows machine. I installed and tested on both XP and 2003 Server
- launch and enter basic server setup info into CoreFTP--user, pw, port (22) and root path (I tested on My Documents\Downloads, as well as "D:\testFolder\") then click Start button
- connect to SFTP server using WinSCP using same info as in CoreFTP setup. This can be from the same machine (connect to localhost), but obviously a remote WinSCP is preferred for a more real-world scenario
- using WinSCP, upload a series of files from about 96KB to 102KB. Easiest way to find a range of incrementally larger files is at C:\WINDOWS\system32, sorted by size
- re-upload the same files, either together or one at a time. The files less than 100KB will always be replaced without confirmation, while larger ones ask for confirmation
To confirm it's an issue with WinSCP and not the SFTP servers, optionally connect to SFTP using FileZilla and repeat steps 4 and 5 above.
Thanks for any help and/or insights.