Click here to Skip to main content
15,917,951 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
<input type="file" name="photo" id="photo" size="30" />
Updated 24-Apr-12 4:30am

If you're talking about getting the path from this, then you can't. This tag is sandboxed pretty tightly, so that it doesn't leave open a security hole for people to exploit.
Share this answer
Looks like it off-late, new versions of web browser doesn't send this information to the server, for security purposes.

Have a look at these discussion:
How to get the file path from HTML input form...[^]
How to get full path of file name from html...[^]
Getting full path while using the input type is file in HTML[^]
Share this answer
Vasim889 25-Apr-12 3:02am    
It's not working.
Sandeep Mewara 25-Apr-12 4:57am    
Did you went through the links? Did you read them?
Vasim889 25-Apr-12 5:19am    
ya. but it's browser compactable supported only in IE.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900