开发者

How do i get the full path of the file in Firefox

开发者 https://www.devze.com 2023-01-02 20:13 出处:网络
How开发者_开发技巧 do i get the full path of the file in Firefox with JavaScript? Thanks in advance!Basically, you can\'t, for security reasons.

How开发者_开发技巧 do i get the full path of the file in Firefox with JavaScript?

Thanks in advance!


Basically, you can't, for security reasons.

However, the new/upcoming File API allows you to do just about everything you might want to do by getting the file's full path, without giving you the file's full path. You can read the file (yes, client-side), get a data-URI for it, etc. Example and details in this other question here on SO.

0

精彩评论

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