RadAsyncUpload SaveAs Throws Access Denied error After Saving File Successfully

2 posts, 0 answers
  1. Kristopher
    Kristopher avatar
    13 posts
    Member since:
    Jul 2013

    Posted 02 Oct 2014 Link to this post

    Hey, 


       I set my TemporaryFolder to a temporary folder where the DefaultAppPool has read and write access.  One of my RadAsyncUploadControls uses an httphandler to save files to this folder using the base.Process() method. There is no problem with this.

       I have another AsyncUpload control which I'm trying to Save the file to this temporary folder using the SaveAs method.  When I execute the SaveAs method, it successfully saves this file into the temp folder with a random string appended to it as it should, then throws an access denied error.  This doesn't make much sense to me, since it successfully saved the file already in its entirety.  Any ideas why this is happening?
  2. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 07 Oct 2014 Link to this post

    Hi Kristopher,

    When the FileSaveAs() method is called the AsyncUpload will move the temporary file from Temporary to Target folder. If you want to keep the temporary file you will have to save it by reading and storing the file stream. 

    Regards,
    Hristo Valyavicharski
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top