RADAsyncUpload App_Data Folder Temp files are not getting cleared

1 posts, 0 answers
  1. vel
    vel avatar
    5 posts
    Member since:
    Oct 2006

    Posted 15 May 2017 Link to this post

    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();
        }
    }

Back to Top