开发者

jQuery : File Input Value needed?

开发者 https://www.devze.com 2023-01-17 18:59 出处:网络
How could we get the file input开发者_如何转开发 full path using jquery ?jQuery(\"input[type=file]\").val(); just for the filename not the entire path.You can\'t. Only filename can be read, not fullpa

How could we get the file input开发者_如何转开发 full path using jquery ?


jQuery("input[type=file]").val(); just for the filename not the entire path.


You can't. Only filename can be read, not fullpath. This restriction is because of security.

0

精彩评论

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