开发者

Client Path of uploaded file or image?

开发者 https://www.devze.com 2023-01-07 04:43 出处:网络
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 ima

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();

0

精彩评论

暂无评论...
验证码 换一张
取 消