FTP upload to a temp file, then rename so op is atomic
Brought to you by:
bbergstrand
Posted in forum
By: tauzell ( Dave Tauzell )
I'm using the upload feature to load my current picture
to a web server. I then have some Windows computers
changing their desktop periodically (using the HttpWall
program) by grabbing the uploaded picture. If the
windows box tries to get the file while ChangeDesktop
is loading the file it will get a partial picture.
My suggestion is to upload to file with a different
name (e.g. append .tmp) and then rename the file after
it is uploaded. The rename is atomic for most ftp
implementations so users wouldn't get a partial file.
Logged In: YES
user_id=595265
Attached is a beta of the next release that includes this
feature. Please report any problems in followups to this bug.
Logged In: YES
user_id=595265
Scratch that, the file is to big for an attachment. Get it
here instead:
http://www.classicalguitar.net/brian/software/bin/ChangeDesktop231b1.dmg
MD5 (ChangeDesktop231b1.dmg) = 9525f0587ccd6287877a2d2e5fb90151
Logged In: YES
user_id=595265
Added in 2.4 release.