I have a html page run on client side and 1 input file. How to input file show full path when user select file. (Internet Explorer is ok. But i want on chrome, Firefox). Node js or angular can do? Thank you!
Asked
Active
Viewed 193 times
1
-
node.js can't do anything on the client side... – octameter Jun 28 '16 at 14:47
-
Uhm, so what about AngularJS? – Do Thuy Jun 28 '16 at 14:48
-
Depends on the browser settings of the client: http://stackoverflow.com/questions/3489133/full-path-from-file-input-using-jquery#answer-3489167 – octameter Jun 28 '16 at 14:58
1 Answers
0
You can using jQuery
location.href
will get the full URL,include the file name and the urk query
$fullpath = location.href;
$('.myInput').val();

Felix Fong
- 969
- 1
- 8
- 21