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!
-
node.js can't do anything on the client side...– octameterCommented Jun 28, 2016 at 14:47
-
Uhm, so what about AngularJS?– Do ThuyCommented Jun 28, 2016 at 14:48
-
Depends on the browser settings of the client: stackoverflow.com/questions/3489133/…– octameterCommented Jun 28, 2016 at 14:58
Add a comment
|
1 Answer
You can using jQuery
location.href
will get the full URL,include the file name and the urk query
$fullpath = location.href;
$('.myInput').val();