Differences

This shows you the differences between the selected revisions of the page.

2014-12-19 2015-01-13
Locking files while uploading (martin) 5.6.5 Bug 1260 Never doing transfer via temporary file when overwriting a file known to be owned by another user (martin)
Line 14: Line 14:
Reasons not to do that: Reasons not to do that:
  * As the file is uploaded to a temporary name, it is technically a new file, even though the file with target name already exists. As such:   * As the file is uploaded to a temporary name, it is technically a new file, even though the file with target name already exists. As such:
-    * after the original file is deleted and temporary file is renamed to the original file name, you lose all attributes of the original file (such as owner and group) except for permissions;+    * after the original file is deleted and temporary file is renamed to the original file name, you lose all attributes of the original file (such as owner and group) except for basic permissions;((For this reason WinSCP never transfers to temporary file name first, if the target file is know to be owner by another user. Note that the owner name can be detected with SFTP-4 and newer only.))
    * while you may have permissions to overwrite the existing file, you might not have permissions to create new (temporary) file.     * while you may have permissions to overwrite the existing file, you might not have permissions to create new (temporary) file.

Last modified: by martin