Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Next »

Valid from 4.0

The documentation below is valid from Datafari v4.0.0 upwards

  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.




  • No labels