Skip to main content
Working with Files is different from other scenarios. To upload or download a File, use api/files endpoint instead of the usual api/commands. When uploading a File, Fibery does two things:
  1. Saves the File to Storage and gets File’s fibery/secret.
  2. Creates an Entity in the fibery/file Database with the fibery/secret from the previous step and gets fibery/id.
When working with Storage (ex. downloading a File) use fibery/secret. For actions inside Fibery (ex. attaching a File to an Entity) use fibery/id: Parent Entity --- (fibery/id) ---> File Entity --- (fibery/secret) ---> File in Storage
fibery/file Database

Upload File

Upload a locally stored File and get:
  • fibery/id to attach the File to an Entity;
  • fibery/secret to download the File.
Upload an image from a Windows PC:
Result:

Upload File from the web

Upload a file from url and get:
  • fibery/id to attach the File to an Entity;
  • fibery/secret to download the File.
Upload an image from pixabay:
Result:

Download File

Download a File by providing fibery/secret.
Note: there is no place on UI where you can find any arbitrary file. You can download it by URL above (or preview by browser if file format allows it).
To view it file on UI one must place it in the Rich Text or Document or into Files extension for some Entity.

Get temporary public File Url

You can get a signed url which is valid for 60 minutes by calling /sign-urls
Result:

Attach File to Entity

Before attaching a File, make sure that you have a Files field added for the Entity’s Database: Screenshot 2025-10-23 at 16.39.02.png Screenshot 2025-10-23 at 16.29.42.png Suppose you’ve added a Files field like it shown on image above. It creates Files Field as an entity collection Field called <Your Space>/Files. Attach and remove Files the same way you update any other entity collection Field. In case you disable Allow multiple files option the field is created as a single file field. In examples bellow we’re considering that you’re working with files collection, please consult your Query entities guide to query single file field data. Attach a picture to a Player’s profile:
Response:

Download attachments

To download Entity’s attached Files:
  1. Get the Files fibery/secret;
  2. Download each File using fibery/secret.
Get attached Files fibery/secret for a particular Player Entity:
Grab the secrets:
Download Files using these secrets:

FAQ

How to Upload Images via API From External Sources