capture path in fileupload control
I have a web application which creates an email with attachments. I use the fileUpload control to browse to the file, but I need to capture the contents of the field to the left of the browse button, the field with the drive, path and filename. I have looked at the fileUpload control and can get the FileUpload.PostedFile.Filename but I need the drive and path also. Any help/suggestions much appreciated. Thanks. Don
Suthish NairPosted Mar 28, 2011, 1:40 PM
use..
System.IO.Path.GetDirectoryName(Server.MapPath(FileUpload1.PostedFile.FileName));
CrishPosted Mar 28, 2011, 1:20 PM