Retrieving creation date of file

2 posts, 0 answers
  1. Daniel
    Daniel avatar
    1 posts
    Member since:
    Jul 2012

    Posted 23 Jul 2012 Link to this post

    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
  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 26 Jul 2012 Link to this post

    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.

    All the best,
    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
Back to Top