string fileName = Path.GetFileName(this.FileUpload1.PostedFile.FileName); if (!File.Exists("Images/"+ fileName)) { //Save Uploaded file at Images folder FileUpload1.SaveAs(Path.Combine(PDFAttachmentFolderPath, fileName)); //Here is code for save file name in Database //You can use fileName variable to get uploaded recently image name. }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)