how to get path from FileUpload web control

On my webform I would like to use the FileUpload control to select the file to upload. The selection works fine, and the full path and filename shows in the textbox. BUT when I want to get the full name (path & filename) I can't find any variable that actually gives me this.

I would expect to find something like FileUpload1.Path when there is a FileUpload1.Filename.

Any good ideas?
dmveAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
jax79sgConnect With a Mentor Commented:
If you want the full path, use the following.

FileUpload1.PostedFile.FileName
0
 
dmveAuthor Commented:
Thanks, some times my brain goes on leave....  ;-)
0
All Courses

From novice to tech pro — start learning today.