I am Trying to Retrieve Full Path of File on Chrome Browser Using FileUpload?

danielolorenz
danielolorenz used Ask the Experts™
on
I am using file upload:
' Retrieving the file name and path from the file dialogue selection
        Dim file As String = BulkDataFileUpload.PostedFile.FileName ' IE Browser Only

I am using the ASP.NET <asp:FileUpload ID="BulkDataFileUpload" CssClass="BulkDataFileUpload" runat="server" Width="250px" /> tag

I am getting back the filename only.  I need the full file path.

Thanks,

Dan
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Glanced up at my screen and thought I had coded the Matrix...  Turns out, I just fell asleep on the keyboard.
Most Valuable Expert 2011
Top Expert 2015
Commented:
Passing the full path of a file is discouraged in web environments as a security precaution. Only non-standard browsers typically do this...generally only IE does this.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial