Open a direct file on the hard drive from firefox (file:///)

前端 未结 6 2137
难免孤独
难免孤独 2020-11-29 12:43

I have a small php system i created for myself. This system contains a few .doc and .docx file documents. I want to be able to open them directly from the browser and not do

6条回答
  •  清酒与你
    2020-11-29 12:57

    Access to local files in Firefox can't be done unfortunately due to security restrictions. As far as I know (I have asked here repeated times myself) it's not even possible to allow select sites through a configuration setting or similar.

    There is a workaround (ponentially unsafe and to be handled with care), you could register a custom protocol as outlined in this question.

提交回复
热议问题