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.
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.
are you meaning you want to grab the image, or just grab the path?
if you want the path you could use: $('#uploadinput').val();
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.