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

martin

Re: request for info: how do the "preserve timestamp" and "temporary filename" settings coexist?

I'm afraid that some servers will bump the timestamp with the rename operation.
orlando.colamatteo

Re: request for info: how do the "preserve timestamp" and "temporary filename" settings coexist?

I encountered a nasty scenario with an app where the upload completed but preserving the timestamp failed. because a failure was encountered my process later retried and it succeeded on all accounts, thereby delivering the file a second time. I know this is my issue, from a defensive programming perspective, but since the upload is to a temporary filename the rename seems like the safest possible last step in the critical path. therefore it would be nicer if the timestamp preservation happened before the rename from the temporary filename to the permanent filename. let me know if you agree, and if you would consider this as an enhancement please let me know how to submit it.
martin

Re: request for info: how do the "preserve timestamp" and "temporary filename" settings coexist?

The latter is true.
orlando.colamatteo

request for info: how do the "preserve timestamp" and "temporary filename" settings coexist?

If I am uploading a file and both "preserve timestamp" and "upload using temporary filename" are set to true, what is the sequence of events that occur during the lifecycle of the file upload?

e.g. is it 1) upload to temp filename, 2) reset timestamp on temporary file, 3) rename file to permanent filename

or is it 1) upload to temp filename, 2) rename file to permanent filename, 3) reset timestamp on permanent file

Thanks.