Hi, I need to know the original date of files.
After transfer, I have only their current date when they are copied.
Any ideas ?
Thanks
1 Answer, 1 is accepted
0
Tina Stancheva
Telerik team
answered on 26 Jul 2012, 02:52 PM
Hi Daniel,
When you start to upload a file in the RadUpload control, the control has a reference to the FileInfo object describing the file. You can access it in the FileUploadStarting event handler through the e.SelectedFile.File property. However, you can get the CreationTime property of the FileInfo object only in a trusted application. Here you can find more information about the FileInfo class and its properties.
This basically means that in a trusted applicaiton you can get the CreationTime of the file that is going to be uploaded and save it somewhere on your client-side or pass it to the server side as described here.