object.GetOriginFileName
This method retrieves the original file name of an uploaded file (i.e. without the prefix that is added to ensure that the file name is unique).
This function can be used to display the original file name to the user or construct alternative save names.
If Form1.FileUpload1.IsUploaded Then Form1.DownloadLink.Link = Form1.FileUpload1.Value Form1.DownloadLink.Value = "download " & Form1.FileUpload1.GetOriginFileName(Form1.FileUpload1.Value) & " [" & Form1.FileUpload1.FileSize & "]" End If
Value Property
FileFolder Property
Get Original Filename Action