Instead of renaming the file, this code create a new file with the new name (resultat.aspx), but leaving the old file.
How rename the uploaded file, not create a new one?
I only uploaded a singel file
How rename the uploaded file, not create a new one?
I only uploaded a singel file
Public Sub uploadFile(ByVal sender As Object, ByVal e As System.EventArgs) If RadUpload1.UploadedFiles.Count > 0 Then Dim file As UploadedFile = UploadedFile.FromHttpPostedFile(Request.Files(0)) Dim targetFolder As String = Server.MapPath(RadUpload1.TargetFolder) Dim targetFileName As String = System.IO.Path.Combine(targetFolder, "resultat.xlsx") file.SaveAs(targetFileName) End IfEnd Sub