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.

Options
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)

Options

Topic review

rfrkk

Re: Hot to automatically rename when uploading files

This is also a good design and I will take advantage of it.
martin

Re: Hot to automatically rename when uploading files

Sorry, but no, WinSCP cannot fulfil your arbitrary conditions.

Similar functionality is WinSCP's recycle bin:
https://winscp.net/eng/docs/ui_login_recycle_bin

If you specify the current working directory (".") as the recycle bin path, the behaviour will be similar to what you ask for. Except for the naming convention. And on overwrite it works with SFTP protocol only.
rfrkk

How to automatically rename when uploading files

When uploading a file, if the following two conditions are met at the same time, the old file name will be automatically renamed:

  1. The file names are the same
  2. File sizes are different

For example, paper1.txt, if the file is uploaded again and meets the above two conditions, it will become paper1.txt, paper1(1).txt. If you upload it again and meet the above two conditions, it will become paper1.txt, paper1(1).txt, paper1(2).txt. And so on.