Menu

Download and Open Local Network resources

+1 vote

For understandable security reasons, Browsers are not allowed to open local network resources. Because of this URLs like [file://C:\YourFolder\YourFile.txt"] will not work. The browser will simply block the request.

For a more complete discussion see the related question.

This feature request proposes that dbFront could be configured with a specific set of safe folders, and for those folders only, allow users to download and view the files via a special link.

in Features (Done) by (7.2k points)
recategorized by

1 Answer

0 votes

The OpenURL action button in dbFront 1.2.2.1247 now supports direct download of local file:// resources.

Three specific safeguards are implemented.

  • The file must be recognized by dbFront as a legitimate data file or image. e.g. DOC, PDF, XLS, JPG, PNG, etc...
  • The path must be registered in dbFront. The setting is configured in [Help]/[Settings]/[Attachments]
  • Most of the path can be hidden within the OpenURL configuration so users are unaware of the location.

NOTE: This functionality has not been implemented for URL fields because it represents a significant risk. Not only can the users see the full local path but if the field is editable then they could potentially download any file of their choice.

Configuration

To allow the download of PDF files from the folder c:\documents\, would you need to do the following.

  1. Add the file mask "c:\documents\*.pdf" to the Local File Download list in the Attachements Tab of the Settings Dialog.
  2. Create a OpenURL action button. For details see: OpenURL Action Button
  3. For the URL enter "file://c:\documents\{0}",
  4. Select the field that will contain the actual file name.
  5. Save the new button.

Assuming that the filename in the field exists and matches the mask then the user will be able to download it.

by (64.9k 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
...