upload timestamp

  • Thread starter Thread starter MFS
  • Start date Start date
M

MFS

How can I make sure that an uploaded file has the same
time stamp as the file on the local machine?
 
MFS,

It depnds on the OS. However, you would have to modify the file (since
you arent really transferring the file, you are sending a byte stream which
is being written into a new file on the server) so that the timestamp is the
same as the old one.

You can set the last access time (as well as creation time) using the
CreationTime and LastAccessTime properties on the FileInfo class. You just
have to initialize it for the correct file that you have saved on the server
side.

You also have to make sure that you are sending the times that you want
to set this file to, along with the file.

Hope this helps.
 
Back
Top