before we start I apologize for my English.
I have:
So it works, but if I change the file name tells me that the file 'App_Data\RadUploadTemp\1378131589339001.JPG'.
was not found". For example, if I load three files are loaded only two and then goes into error
This is the code that produces the error
{
e.File.SaveAs(Server.MapPath(Path.Combine(RadAsyncUpload1.TargetFolder, e.File.GetNameWithoutExtension() + User.Identity.Name + e.File.GetExtension())));
}
I have:
<telerik:RadAsyncUpload ID="RadAsyncUpload1" AllowedFileExtensions="JPG,gif,png,jpg,tif,tiff" MaxFileInputsCount="3" OnClientValidationFailed="OnClientValidationFailed" OnFileUploaded="RadAsploayncUd1_FileUploaded" runat="server" ChunkSize="0" Culture="it-IT" PostbackTriggers="pulsante"></telerik:RadAsyncUpload>
<asp:Button runat="server" ID="pulsante" Text="Aggiorna profilo" OnClick="Button1_Click" />
//and in the code:
protected void RadAsploayncUd1_FileUploaded(object sender, FileUploadedEventArgs e)
{
RadAsyncUpload1.TargetFolder = "~/App_CProfili/ImgProfili/";
}
So it works, but if I change the file name tells me that the file 'App_Data\RadUploadTemp\1378131589339001.JPG'.
was not found". For example, if I load three files are loaded only two and then goes into error
This is the code that produces the error
protected void RadAsploayncUd1_FileUploaded(object sender, FileUploadedEventArgs e)e.File.SaveAs(Server.MapPath(Path.Combine(RadAsyncUpload1.TargetFolder, e.File.GetNameWithoutExtension() + User.Identity.Name + e.File.GetExtension())));
}