Client Path of uploaded file or image?
It is possible to get the path of image path, when uploaded using file element?
Basical开发者_JS百科ly, I want to grab the clients path and show it on the page so that user can be certain of what image he chosed, before uploading it.
Any alternative suggestion are welcomed.
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.
are you meaning you want to grab the image, or just grab the path?
if you want the path you could use: $('#uploadinput').val();
精彩评论