Why need a temp folder when you upload directly to database

2 posts, 0 answers
  1. Rajesh Krishnamohan
    Rajesh Krishnamohan avatar
    2 posts
    Member since:
    Apr 2010

    Posted 21 Mar 2011 Link to this post

    Hi there,

    I am trying to implement something like this


    It works great on my local, but when deployed in IIS 7, it throws a security error

    System.UnauthorizedAccessException: RadAsyncUpload could not create App_Data\RadUploadTemp folder. Ensure the App_Data folder is writable or set the TemporaryFolder property to a writable location.     at Telerik.Web.UI.RadAsyncUpload.CreateTempFolder()     at  

    While I know how to fix the security issue, I really do not want the AsyncUpload tool to write to any local folders [due to various deployment environment constraints]

    Any idea why this is happening?

    Here's my code in the markup

    <telerik:RadAsyncUpload runat="server" ID="AsyncUpload1" MultipleFileSelection="Automatic" HttpHandlerUrl="~/lib/Upload.ashx" >

  2. Peter Filipov
    Peter Filipov avatar
    1028 posts

    Posted 24 Mar 2011 Link to this post

    Hello Rajesh Krishnamohan,

    If you are using Silverlight to upload a file, the file is divided to small chunks which are uploaded and reassembled into the AsyncUploadTemporary folder.

    If you are using Flash or IFrame the file is uploaded into an ASP.NET temporary folder and after that is moved to the AsyncUploadTemporary folder. That difference to upload process with Flash/IFrame is because we have no control of the overall upload process. If you want to disable upload with Silverlight please add this snippet to your code:
    Telerik.Web.UI.RadAsyncUpload.Modules.Silverlight.isAvailable = function () { return false; };

    Peter Filipov
    the Telerik team
  3. DevCraft R3 2016 release webinar banner
Back to Top