Link to home
Start Free TrialLog in
Avatar of josecuadra
josecuadra

asked on

How can I obtain the absolute path of a File using Javascript?

Hello experts,

I am trying to obtain the absolute path of a file I selected using the <input type="file" name="someName" id="someID" />

The problem is that it seems that in some browsers, this extracts the absolute path but in others it only extracts the relative path. Any suggestions on how to solve this issue? Any good strategy would be appreciated.

Thank you.
Avatar of Alok-Agarwal
Alok-Agarwal
Flag of India image

Please try document.FORMNAME.ELEMENTNAME.value
ASKER CERTIFIED SOLUTION
Avatar of hielo
hielo
Flag of Wallis and Futuna image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial