...
Table of Contents |
---|
Introduction
You can share binary files within the platform, between platform users and with external users, if you make the file public.
See also: How to share files through the Files Repository REST API?
How to use it?
1) Go to https://<platform_instance>/controlpanel/files/list . You can also find this link from the menu:
...
A modal will pop up, and you have to write down the 'metadata', which is are optional, and select the file that you want to share.
...
There are two types of Storage Mode: Mongo GridFS and Directory (File). The default choice is GridFS and is the one recommended for several reasons. Either way it is transparent to the user.Note: There is a
Info |
---|
The platform allows to configure the maximum size of the files to be uploaded, through its Centralized Configuration. By default, the limit in file size |
...
is 50 MB. |
2) Once uploaded, you will see the file in the list:
...
By default, uploaded files are not public and not shared, so if you want to share it with (non) platform platform users, or with external users, you must click on the 'share' or 'public' button.
...
You may also make the file public. In that case, anyone can download the file: , for example: https://www.onesaitplatform.online/controlpanel/files/5bb779a8008920000b398abf
You can also use the the REST API REST to make CRUD operations with binary files.
...
By default, if you click the Download button or paste the url in an explorera browser, the file will be downloaded as an attachment, but if you add the request parameter 'disposition', with any value, you will get the content of the file in the body of the response body, instead of the attachment, for example:
...