moves the uploaded files to a TargetFolder after a postback. And at the moment you set Target path via the TargetFolder
property. Then on button click postback is raised and RadAsyncUpload
will automatically move uploaded files from Temporary to Target folders. This will happens before the button's on click event is fired. Later when it is fired files will be no longer accessible, because they were moved. To resolve the issue move your logic in RadAsyncUpload's OnFileUploaded
event or remove the TargetFolder
property. Then your code will be changed as follows:
"pdf, docx, doc, xfdl"
'Upload all the files to a permanent location
"Insert PriorServiceUpload (intPriorServiceId, strUrl) VALUES ("
& PriorId &
& file.FileName &
Also be sure that your application has write permissions to both Temp and Target folders.
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed