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

Maximum value for TemporaryFileExpiration?

1 Answer 114 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Lenny_shp
Top achievements
Rank 2
Lenny_shp asked on 29 Sep 2011, 11:47 PM
It does not work with 24 hours.   What if I want to keep the files for 2 days?

Cannot create an object of type 'System.TimeSpan' from its string representation '24:00:00' for the 'TemporaryFileExpiration' property.

1 Answer, 1 is accepted

Sort by
0
Dimitar Terziev
Telerik team
answered on 04 Oct 2011, 08:14 AM
Hello Lenny_Shp,

In order to set the TemporaryFileExpiration to be 2 days you should use the following code:
RadAsyncUpload1.TemporaryFileExpiration = New TimeSpan(2, 0, 0, 0, 0)

The second parameter is for the hours, the third for the minutes, the fourth for the seconds and the last one is for milliseconds.

All the best,
Dimitar Terziev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
AsyncUpload
Asked by
Lenny_shp
Top achievements
Rank 2
Answers by
Dimitar Terziev
Telerik team
Share this question
or