I have tried to set the RadUpload.TargetFolder in the Button1_Click event and also on Page_Load but it still not saves it there!
Help please! :)
3 Answers, 1 is accepted
answered on 06 Mar 2009, 11:36 AM
This functionality can be achieved using .SaveAs() method of the UploadedFile class. For more information how to deal with the uploaded files please refer to this help article. For your convenience I have attached sample project reproducing the desired scenario.
Something must have gone wrong with the attachment, please excuse me, I am attaching it once again.
In concern to your posted code - keep in mind that when Button1_Click event fires, the files are already uploaded! In general, all server events fire when the files are already uploaded, so this cannot add overhead to the upload itself. In addition custom progress monitoring ( as it is your code ) is necessary only when you want to use the progress monitor for a task different than uploading files. You see, the progress area is automatically following the file upload progress, there is no need to write any source code at all!