Example of Setting TemporaryFolderExpiration in web.config

5 posts, 1 answers
  1. Yang
    Yang avatar
    5 posts
    Member since:
    May 2014

    Posted 01 Jul 2015 Link to this post

    Is there any example to show how to set TemporaryFolderExpiration in web.config? 
  2. Aneliya Petkova
    Admin
    Aneliya Petkova avatar
    207 posts

    Posted 02 Jul 2015 Link to this post

    Hi Yang,

    There is no property with such name in the RadAsyncUpload control. The property, which sets the expiration time of the files in the Temporary folder is TemporaryFileExpiration. The property accepts TimeSpan values. The default value is 4 hours. More information regarding the TimeSpan structure can be found here.

    However I checked our documentation, but there we have a mistake, which we will fix - this property could not be set globally from the web.config(it could be set in the markup of the control or in the code behind). If you need to set this property globally, you can create a feature request in our Ideas and Feedback portal. There you can track its status, comment and vote for it.

    Please excuse us for the inconveniences caused by this.

    Regards,
    Aneliya Petkova
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Yang
    Yang avatar
    5 posts
    Member since:
    May 2014

    Posted 02 Jul 2015 Link to this post

    Sorry, my mistake, it should be TemporaryFileExpiration. If it's set in markup, what's value would be? Should i use ticks or format like 00:00:05 (i.e. 5 minutes) ? 
  5. Answer
    Aneliya Petkova
    Admin
    Aneliya Petkova avatar
    207 posts

    Posted 03 Jul 2015 Link to this post

    Hi Yang,

    The format you are using is correct, but please note that 00:00:05 is equal to 5 seconds, not minutes. If you need to set 5 minutes, you should write TemporaryFileExpiration = "00:05:00".

    Regards,
    Aneliya Petkova
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  6. Yang
    Yang avatar
    5 posts
    Member since:
    May 2014

    Posted 07 Jul 2015 in reply to Aneliya Petkova Link to this post

    Thanks for the help
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017