Click here to Skip to main content
14,331,130 members
Rate this:
Please Sign up or sign in to vote.
See more:
<input type="file" name="photo" id="photo" size="30" />
Posted
Updated 24-Apr-12 4:30am
v2
Rate this:
Please Sign up or sign in to vote.

Solution 2

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.
   
Rate this:
Please Sign up or sign in to vote.

Solution 1

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[^]
   
Comments
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, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100