Menu

Directly open a Local or Network file from dbFront

0 votes

I would like my users to be able to click on a link in the data and directly open a Local or Network file. How can I do this?

I have also attempted to use the action button feature to open a network file share using the UNC folder name without success.

in How To by (3.5k points)

1 Answer

0 votes

Most browsers will block your efforts because it represents a significant security risk.

For more details see:

​There are a number of hacky attempts to make it work but most browsers will make this difficult.

To see the problem:

  • Create a new OpenURL Action button,
  • Set the URL to: file://C:\YourFolder\YourFile.txt,
  • Set the Destination to: "Redirect" and save the button,
  • Open the browser console (F12),
  • Click on your new Button,
  • The console will show the error: "​Not allowed to load local resource: file:///C:\YourFolder\YourFile.txt"

You can experiment with other path options or try the browser extensions below.

​If you are willing to change the Browser configurations or install extensions for your users, then you should be able to find a workable option but it won't be a nice clean solution.

Some promising browser extentions are:

I would be tempted to go back to the drawing board and look for alternatives.

by (42.3k points)
Welcome to the dbFront Q&A site, where you can ask questions and receive answers from other members of the community.
 | Minimalist Answer Theme by Digitizor Media
 |
Powered by Question2Answer
...