Question about RadAsyncUpload temp files

2 posts, 1 answers
  1. Boris
    Boris avatar
    289 posts
    Member since:
    Oct 2012

    Posted 14 Oct 2014 Link to this post

    I had to replace the RadUpload controls in my app with RadAsyncUpload versions rather quickly and I may have missed out on a few details.

    In my old system (while using RadUpload) I had code to delete the uploaded files once processed (inserted into a database field).

    It looks to me like the simplest thing to do with the RadAsyncUpload would be to leave the files alone and rely on the control's TemporaryFileExpiration setting to do the job.

    My question is this.  Am I missing anything?  Is there any real drawback to using the default App_Data\RadUploadTemp path and relying on automatic deletion of these temp files?  (In fact, why should I even need a Target Folder?)
  2. Answer
    Boyan Dimitrov
    Boyan Dimitrov avatar
    1968 posts

    Posted 16 Oct 2014 Link to this post


    Indeed using this property is the simplest way of deleting any files in the temp folder.

    I would suggest reviewing this demo that demonstrates how to use custom handler in order to save a file directly to the data base.

    Boyan Dimitrov

    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.

Back to Top