filePath = FileUpload1.PostedFile.FileName;
But I'm getting only filename instead of full pathHow to get full file path
I have a file upload control. I want to get the full path of file from file upload control. I'm using that below code,
Jignesh TrivediPosted Oct 3, 2013, 9:23 AM
hi,
When we upload file, the browser will send only the souce file name not full file path, this value can be check by using FileUploadControl1.PostedFile.FileName property.
so i thing it is not posible to get full path....
hope this will help you.
TulasiPosted Oct 3, 2013, 8:40 AM
FileUpload1.PostedFile.FileName it gives u complete file path in some browser. but this feature has been disabled due to security reasons.
please have a look on this below link .
http://www.codeproject.com/Questions/169238/FileUpload-PostedFile-FileName-not-giving-full-pat