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

RADAsyncUpload App_Data Folder Temp files are not getting cleared

0 Answers 78 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
vel
Top achievements
Rank 1
vel asked on 15 May 2017, 07:42 AM

Temp files are not getting cleared from the App_Data folder while i'm using RADAsyncUpload control.  I'm using telerik dll verison is 2015.1.310.40 and .Net framework is 4.6.2 with Visual Studio 2015. 
Below is the .aspx file code
<telerik:RadAsyncUpload runat="server" ID="AsyncUpload1" HideFileInput="true" MultipleFileSelection="Automatic"
                                            AllowedFileExtensions=".tif,.tiff,.pdf" TemporaryFileExpiration="05:00:00">
Below is the C# code for reading the image bytes from memory stream by using telerik UploadedFile.
Byte[] byt= null;
foreach (UploadedFile file in AsyncUpload1.UploadedFiles)
{
    using (MemoryStream ms = new MemoryStream())
    {
                file.InputStream.CopyTo(ms);
                 byt = ms.ToArray();
    }
}

No answers yet. Maybe you can help?

Tags
AsyncUpload
Asked by
vel
Top achievements
Rank 1
Share this question
or