Using file upload control.
How to get path of file when using file upload control in asp.net
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Madhu KRank #1,514 · 1.1K reputationPosted Jan 13, 2011, 3:37 AM EST
string filename = FileUpload1.FileName;
//gives along with the directory like c://Folder1//img.png
string filename= FileUpload1.PostedFile.FileName;