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

后端 未结 1 1720
夕颜
夕颜 2021-01-16 17:06

How do i get the full path of the file in Firefox with JavaScript?

Thanks in advance!

相关标签:
1条回答
  • 2021-01-16 17:27

    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 讨论(0)
提交回复
热议问题