Hi, i'm trying to upload some files and write them away.
But everytime i do a postback the files are gone, anyone have an idea what i'm doing wrong ?
Front end code
Backend
Or on fileuploaded
I always get the following error:
Could not find file '***********\App_Data\RadUploadTemp\1341910388330Lighthouse.jpg'.
But everytime i do a postback the files are gone, anyone have an idea what i'm doing wrong ?
Front end code
<telerik:RadAsyncUpload runat="server" ID="RadAsyncUpload1" MultipleFileSelection="Automatic"></telerik:RadAsyncUpload>
Backend
Protected Sub btnsaveimages_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnsaveimages.Click If RadAsyncUpload1.UploadedFiles.Count > 0 Then For Each file As UploadedFile In RadAsyncUpload1.UploadedFiles file.SaveAs("~/" + file.FileName) Next End If End SubOr on fileuploaded
Sub RadAsyncUpload1_FileUploaded(ByVal sender As Object, ByVal e As FileUploadedEventArgs) Handles RadAsyncUpload1.FileUploaded e.File.SaveAs(Server.MapPath("~/Upload/Images/ImgGallery/2/" + e.File.FileName), True) End SubI always get the following error:
Could not find file '***********\App_Data\RadUploadTemp\1341910388330Lighthouse.jpg'.