FTP file upload, upload first then overwrite target file.

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
HanTimm
Junior Member
Junior Member
Posts: 3
Joined: 2022-01-06, 17:09 UTC
Location: Radford VA

FTP file upload, upload first then overwrite target file.

Post by *HanTimm »

Would be handy to have an option where a file is uploaded first with a temp name and then renamed to the right name, if necessary overwriting an existing file. This way script files, like php, will not be executed half way through an upload on a busy server.
Gr. HanTimm
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48075
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: FTP file upload, upload first then overwrite target file.

Post by *ghisler(Author) »

It causes the same problem as when doing this locally: Special permissions of the target file will be lost. For example, I set the permissions of certain files to 666 so everyone can write to them. This would be lost. Not all FTP servers allow to set these permissions remotely (I had to set them via an ssh connection), so I can't just copy the permissions to the new temporary file.
Author of Total Commander
https://www.ghisler.com
Post Reply