0

In our intranet environment I am trying to have a way of (like file upload / telerik file explorer) selecting a file using a browser and then returning the path only. I need to save the path in database and users need to select the file from network shared drive.

For telerik explorer u need to implement custom provider to do that and I am unable to do it using file upload control.

Tips regarding a user friendly solution will be highly appreciated.

Ofer Zelig
  • 17,068
  • 9
  • 59
  • 93
user446923
  • 553
  • 1
  • 10
  • 20
  • What about `System.IO.Path.GetDirectoryName()`? – Ofer Zelig Oct 02 '12 at 05:14
  • But to do that i would require the full path first isn't it? From browser, file upload control is only returning the file name when I try getting the .value in Firefox/Chrome (required browsers), ANy ideas? – user446923 Oct 02 '12 at 05:23
  • Oh, I got it now - so I changed the question tag since it's client-related rather than an ASP.NET-related issue. Please see my answer below. – Ofer Zelig Oct 02 '12 at 05:34

1 Answers1

1

That can't be done because it would posses a security issue.

Please read these:

Community
  • 1
  • 1
Ofer Zelig
  • 17,068
  • 9
  • 59
  • 93
  • sigh that was my only fear but well now it's verified. Thanks. Also thanks for editing the tag..you are right its client side stuff. – user446923 Oct 02 '12 at 08:07