Firefox Tip 4: Handling file uris
I read this somwhere recently, and its immensely useful in a corporate environment.
If you want firefox to be able to load uris that look like file://...
- Open about:config
- set security.checkloaduri to false
Not sure if doing so makes firefox vulnerable.. so proceed at your own risk!
Update: Use the new prefs to enable this on a per-site-basis.
- Open about:config
- Add these prefs:
- capability.policy.policynames = localfilelinks
- capability.policy.default.checkloaduri = noAccess
- capability.policy.localfilelinks.sites = http://intraneturl
- capability.policy.localfilelinks.checkloaduri = allAccess
Comments
This KB article - http://kb.mozillazine.org/Links_to_local_pages_don%27t_work - discusses the preference, why it exists, and the ramifications of setting it to false.
Posted by: Unarmed | September 6, 2005 03:08 PM
I had this problem too when I needed image preview before uploading. it took a while to figure out the problem. It seems that the bugs isn't hard at all to fix but I guess it's better to threat it like a "security risk" instead of fixing it.
Posted by: Emil Tamas | September 6, 2005 03:45 PM