Download a file hosted in File Store
File Store is designed to host static files for websites and serve them in a static site browsing experience.
|
File Store is not designed to be used like services such as Google Drive or Microsoft OneDrive. These sites use the web interface as the caching layer and static site for authentication and downloads. |
The File Store API does not have a caching layer. File Store should never be configured to allow direct public access to a stored resource.
The correct way to allow direct file downloads from File Store is to follow these key principles:
-
Direct access to download files must occur through a wrapped API call through a static site.
-
All file download GET requests to the API must be authenticated.
Read Using the File Store API for usage examples.
Before you start
-
Have a static mapping set up as described in Static site configuration prerequisites.
-
Understand where the Information menu for each file is located.
Steps
-
Upload the file you want to share for download following Upload a static site archive to the File Store.
-
Set the file permissions to be public.
-
Create a static mapping to the folder following Mapping a folder to a domain or sub-folder.
-
Open the > Information menu for the file you want to share.
-
Share the URL link to the file.