Reputation: 9574
I need user to select file on his computer and get only location of that file (not to upload). Any suggestions?
Thanks,
Ile
Upvotes: 1
Views: 1137
Reputation: 9574
Not possible - actually there is not solution that works in all browsers. Thanks to Marnix van Valen for answer (comments)
Upvotes: 0
Reputation: 3227
you could create a <file ...> input and when the user clicks the submit button, read the value of the input and then remove it from the DOM before the form is submitted.
I'm not sure if there's a better way.
Upvotes: 0
Reputation: 176896
You can use javascript with ActivxObject
to get file detail of client machine
see the following article might help you Using JavaScript to read a client-side file
Upvotes: 1