in reply to knowing when a file is done writing to the server?
i have a few scripts that move large batches of files on a local server, i have no problem moving them quickly, the issue i have is the user who is uploading has a much slower connection then me. how do i know when to move a file? if they are uploading 200 images, whats a good practice to know when any of the files is done writing to the server?
Start by repairing your shift key. It seems to have severe contact problems. Consider replacing your keyboard.
Then, don't let your users upload to the final destination with the final filename. Upload to a temp file in a temp directory on the same disk, then rename to the final location and the final name. This way, the upload can take ages without affecting the scripts that move completed files.
Alexander
|
|---|