Opening Files with Browsers Configuration

Valid from 4.5 to upwards

The documentation below is valid from Datafari v4.5 to upwards

Browser

How to open files

How to open

Version tested

Browser

How to open files

How to open

Version tested

Google Chrome

By default (and for security !), Chrome forbids the opening of urls pointing towards local files, from a web browser. There is a workaround using the open Local file extension :

https://chrome.google.com/webstore/detail/enable-local-file-links/nikfmfgobenbhmocjaaboihbeocackld

Then activate the extension

After clicking on the doc title on Datafari, click on the Link "Link to doc"

80.0.3987.122

Mozilla Firefox

by default and for security, Firefox forbids the opening of URLs pointing at local files, from a web browser. Here is a work around:

  • Open the AppData folder

To locate it easily in Firefox, click on :

Firefox->Help→Troubleshooting Information

Then click on the button Open Folder next to Profile Folder

The path sould like the following : C:\Users\Utilisateurs\xx\AppData\Roaming\Mozilla\Firefox\Profiles\xxx.default*

2 possibilities : Either there is already a user.js file, so you need to add the following lines to the file or there is no file named user.js, in which case you need to create it and put the lines detailed above.

user_pref("capability.policy.policynames", "localfilelinks");

user_pref("capability.policy.localfilelinks.sites", "https://IP_DATAFARI");

user_pref("capability.policy.localfilelinks.checkloaduri.enabled", "allAccess");

REplace https://IP_DATAFARI by the IP or the address of your Datafari.

https://IP_DATAFARI for EE edition, http://IP_DATAFARI:8080 for CE edition

You then need to copy user.js into the folder, to stop Firefox (check that the process has been killed) and restart it. The local files should open normally.

After clicking on the doc on Datafari, the document will be opened

73.0.1

Microsoft Internet Explorer

Open Internet Explorer

Go to Internet Options

 

Go to the security tab

Click on Trusted Sites

 

Click on Sites and add the ip address of your datafari, starting with http:// (do not add the port number, just the IP)

 

Restart your windows explorer, do another search and voila !

After clicking on the doc on Datafari, the document will be opened

11.657

Microsoft EDGE

You need first top open Internet Explorer and do the process for this browser. After that you can open local files on Edge.

After clicking on the doc title on Datafari, click on the Link "Link to doc"

44.18362.449.0


Valid from 4.0 to 4.4

The documentation below is valid from Datafari v4.0 to 4.4 included

  1. Open local files with Chrome

  2. Open local files with Firefox

  3. Open local files with Internet Explorer

1. Open files with Chrome 

By default (and for security !), Chrome forbids the opening of urls pointing towards local files, from a web browser. There is a workaround using the open Local file extension :

https://chrome.google.com/webstore/detail/enable-local-file-links/nikfmfgobenbhmocjaaboihbeocackld

Then activate the extension. 

NB : for now this extension works only if we deactivate the URL redirect in Datafari in SubClassResultWidget.js, ie edit the file :
//var urlRedirect = 'URL?url='+ url + '&id='+Manager.store.get("id").value + '&q=' + Manager.store.get("q").value + '&position='+position;
var urlRedirect = url ;
Indeed, the extension code needs to be modified because there is a regex that verifies if the url starts with file://. And the url in Datafari does not begin by file:// but by the Datafari IP server because we use a redirection.

2. Open files with Firefox

Again, by default and for security, Firefox forbids the opening of URLs pointing at local files, from a web browser. Here is a work around:

  • Open the AppData folder

To locate it easily in Firefox, click on :

Firefox->Help->Debug help

Then click on Open the corresponding folder

The path sould like the following : C:\Users\Utilisateurs\AppData\Roaming\Mozilla\Firefox\Profiles\xxx.default

2 possibilities :

  • Either there is already a user.js file, to which you need to add the following lines :

user_pref("capability.policy.policynames", "localfilelinks");

user_pref("capability.policy.localfilelinks.sites", "http://192.168.1.88:8080");

user_pref("capability.policy.localfilelinks.checkloaduri.enabled", "allAccess");

  • Or there is no file named user.js, in which case you need to create it and put the lines detailed above.

You then need to copy user.js into the folder, to stop Firefox (check that the process has been killed) and restart it. The local files should open normally.

NB : it seems that for new versions of Firefox, the number of slashes in the URL has to be changed from 5 to 2. There is a Jira issue on it : https://datafari.atlassian.net/projects/DATAFARI/issues/DATAFARI-236

3. Open files with Internet Explorer 

Open Internet Explorer

Go to Internet Options

 

 Go to the security tab

Click on Trusted Sites

 

Click on Sites and add the ip address of your datafari, starting with http:// (do not add the port number, just the IP)

 

Restart your windows explorer, do another search and voila !

NB : if you use Edge, you need to do these steps with IE and restart Edge.