开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜