How do I get File Path from the Fileupload Control?

I am using a Fileupload control on VB.NET ASP.NET web page and wanted to know how to get the file path.  I can get the file name but how do I get the file path?

[        ] Browse

Protected Sub Button3_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button3.Click
        Dim filename_csv As String = FileUpload1.FileNameToString()  ???? I need the full path
       
        Dim sr As New StreamReader(filename_csv)  
HojoformoAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
nickhoggardConnect With a Mentor Commented:
Hi,

Check out FileUpload1.PostedFile.FileName.

Cheers

Nick
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.