Hello!
I am using the ASP.NET FileUpload control so that users can upload text files to our web server. Everything works fine in terms of saving the file to where we wanted, etc., using the SaveAs () method of the control.
But we were taken aback by one seemingly simple warning: the original time stamp of the downloaded file was lost, for example, the date of the last change and the date of creation. The last modification date and creation date become the actual date and time when the file is saved on the server.
My question is: is it worth preserving the original timestamp by setting some attributes that I still don’t know about, or can I read the file metadata to get its initial timestamp?
Everyone is welcome any suggestions and suggestions.
John
source
share