Access storage methods viaDocumentation Index
Fetch the complete documentation index at: https://docs.ub.bitbros.in/llms.txt
Use this file to discover all available pages before exploring further.
client.storage. Uploaded files are served from a public CDN — no extra configuration required.
upload
Upload a file to storage.| Name | Type | Required | Description |
|---|---|---|---|
file | File | Blob | Buffer | Yes | The file to upload. |
filename | string | No | Override the stored filename. |
UploadResponse)
| Field | Type | Description |
|---|---|---|
url | string | Public CDN URL for the uploaded file. |
path | string | Storage path — required to delete the file later. |
provider | 'internal' | 'external' | Whether the file is stored on urBackend or your own Supabase. |
Store the
path alongside the url in your database. You need it to delete the file.deleteFile
Delete a previously uploaded file by its storage path.| Name | Type | Required | Description |
|---|---|---|---|
path | string | Yes | The path returned by upload(). |
Limits
| Limit | Value |
|---|---|
| Max file size | 10 MB per file |
| Total storage per project | 20 MB (Free Tier) |
Uploads that exceed 10 MB are rejected with a
StorageError.