views:

73

answers:

2

Here is what I am trying to make.

Whenever a user browses a image from a file field. I want to grab the clients path and show it on the page so that user can be certain of what image he choosed, before uploading it.

A: 

are you meaning you want to grab the image, or just grab the path?

if you want the path you could use: $('#uploadinput').val();

Hailwood
@hailwood, that only returns the file name the whole path. I want the whole path
Starx
THE PATH. I DEMAND THE PATH D<
Matchu
+1  A: 

Its browser security -- you cannot get access to the full path on the user's filesystem. As a web-app, you only get access to the actual file and its name. Afaik, you can do this by writing a browser plugin, but with normal security privileges, you cannot.

sanjayb