Storage
Create private or public buckets, upload files and share them with signed links.
Last updated
Open Storage in your project (add it with Add a service if it is not in the sidebar). It has Buckets, Access rules and Settings. Storage needs Backend Cloud.
Create a bucket
- Choose New bucket.
- Enter a name, choose private or public read, and the largest file size (1 to 5 MiB).
- Create it. A name that is taken is refused.
Files
- Upload files with your device's file picker. Type, size, name and duplicates are checked before sending; Retry resends a refused file.
- Folders come from file paths. New folder stays on the page until you upload a file into it.
- Download opens a 60-second signed link.
- A file's details offer Create signed link (60 to 300 seconds), or, for a public bucket, its public address.
- Make public and Make private change a bucket's visibility after a confirmation.
- Delete and Delete selected remove files.
The Access rules tab has a card, How access works today, that explains who can read and write.
Limits
| Limit | Value |
|---|---|
| Largest file | 1 to 5 MiB, set per bucket |
| Stored per project | 50 MiB |
| Files per project | 100 |
Settings › Usage shows stored bytes and files against these limits, and bytes uploaded and downloaded this month.
Note: Not available yet: custom access rules, deleting a bucket, bigger files, image resizing, CDN and CORS settings. Prices shown are proposals.
From your app
On your project's data API (DASTER_URL):
| Request | Purpose |
|---|---|
GET /backend/v1/projects/{projectId}/storage/{bucketId} | List files |
POST /backend/v1/projects/{projectId}/storage/{bucketId} | Upload |
POST /backend/v1/projects/{projectId}/signed-url/{objectId} | Create a short-lived signed link |
GET /backend/v1/projects/{projectId}/download/{objectId} | Download with a key, a user token or a signed link |
DELETE /backend/v1/projects/{projectId}/objects/{objectId} | Delete |
A private bucket needs a signed-in user with access or the server key; the browser key alone cannot read it.