Launch file:// from Firefox or Chrome

前端 未结 5 1746
时光取名叫无心
时光取名叫无心 2021-02-08 10:24

I am looking for a way to launch a file located on our local file network for use via our local intranet using Firefox or Chrome.

The link works well in IE:



        
相关标签:
5条回答
  • 2021-02-08 11:02

    For Chrome, a new extension was just posted today! It's called LocalLinks and it replicates the functionality of the locallink add-on for Firefox! You'll find it on the Google Extensions page, or you can get to it directly here:

    https://chrome.google.com/extensions/detail/jllpkdkcdjndhggodimiphkghogcpida

    Enjoy!

    0 讨论(0)
  • 2021-02-08 11:06

    This is not enabled in firefox for security reasons (remember that most computers have files and applications of a sensitive nature located in similar locations, like C:\System\Windows)

    you can try adding this to the user.js file for any user that needs to be able to access these links:

    user_pref("capability.policy.policynames", "localfilelinks");
    user_pref("capability.policy.localfilelinks.sites", "file:///[[PUT SERVER NAME HERE]]";);
    user_pref("capability.policy.localfilelinks.checkloaduri.enabled",  "allAccess");
    

    Just remember that this is a security risk.

    0 讨论(0)
  • 2021-02-08 11:06

    There is the LocalLink add-on for firefox. It uses a context menu though...

    0 讨论(0)
  • 2021-02-08 11:18

    Firefox seems to want file://///Start/Of/My/Network/file.xlsx

    Chrome and IE handles that too. file://Start/Of/My/Network/file.xlsx appears to work in Chrome as well, sometimes firefox hics up on it..

    0 讨论(0)
  • 2021-02-08 11:18

    Use IE tab (available for Chrome and Firefox) and set that to handle all links of the form file:/// by adding an autourls entry like this:

    r/file:///.*
    

    Technically this isn't opening the file in the original browser, but it gives you all the windows explorer integration you'd expect from whatever IE version you've got installed when dealing with local file links. I would advise against doing this except in cases when the browser isn't being used to access the web - e.g. for viewing internal wiki or intranet pages, due to the obvious security risk.

    0 讨论(0)
提交回复
热议问题