Click here to Skip to main content
15,892,480 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
<img src="images/avartarB.jpg" width="180" height="180" alt="image" />


<input type="file" id="path" class="fileupload" />(this is a textbox)


i have a textbox with button browes to select a image and the problem is when i select an image textbox did not show the real paths its showes like C:\fakepath\image.jpg i am trying to show a real path ... help me
Posted
Comments
[no name] 2-May-13 13:09pm    
How is it that you think that "C:\fakepath\image.jpg" is not a real path?

1 solution

This is because of browser security. You can't access the user's computer so browsers do that. You don't need the path anyway. The file will be sent to your server and then you'll save it somewhere on your server.
 
Share this answer
 

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