This is a migrated thread and some comments may be shown as answers.

Example of Setting TemporaryFolderExpiration in web.config

4 Answers 205 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Yang
Top achievements
Rank 1
Yang asked on 02 Jul 2015, 03:01 AM
Is there any example to show how to set TemporaryFolderExpiration in web.config? 

4 Answers, 1 is accepted

Sort by
0
Aneliya Petkova
Telerik team
answered on 02 Jul 2015, 09:11 AM
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
0
Yang
Top achievements
Rank 1
answered on 02 Jul 2015, 11:46 PM
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) ? 
0
Accepted
Aneliya Petkova
Telerik team
answered on 03 Jul 2015, 07:33 AM
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
0
Yang
Top achievements
Rank 1
answered on 07 Jul 2015, 05:37 AM
Thanks for the help
Tags
AsyncUpload
Asked by
Yang
Top achievements
Rank 1
Answers by
Aneliya Petkova
Telerik team
Yang
Top achievements
Rank 1
Share this question
or