ASP.NET FileUpload
Posted
by John
on Stack Overflow
See other posts from Stack Overflow
or by John
Published on 2010-06-14T16:35:22Z
Indexed on
2010/06/14
16:42 UTC
Read the original article
Hit count: 392
ASP.NET
|fileupload
Greetings!
I am using the ASP.NET FileUpload control to allow users to upload text files to our web server. Everything works great in terms of saving the file to where we wanted, etc, using the SaveAs() method of the control.
But we were caught off guard by one seemingly simple caveat: the original timestamp of the uploaded file was lost such as the date last modified and date create. The date last modified and date created become the actual date and time when the file is saved to the server.
My question is: is there anyway to retain the original timestamp by setting some attributes that I am not aware of yet or is it possible to read the metadata of the file to get its original time stamp?
Any in-sight and suggestions are greatly appreciated.
John
© Stack Overflow or respective owner