Supabase Storage¶
Non-Visible component| Category | Requires | Version |
|---|---|---|
| Storage | API 21, Android 5.0 Lollipop | 1 |
Overview¶
A non-visible component that provides file storage operations via Supabase Storage. Supports file upload (with upsert), download, deletion, listing, public URLs, and signed URLs for time-limited access.
Events¶
Error Occurred¶
Fired when any operation fails
| Params | |
|---|---|
| operation | Text |
| status Code | Number |
| message | Text |
File Deleted¶
Fired when a file is deleted successfully
| Params | |
|---|---|
| path | Text |
File Downloaded¶
Fired when a file download completes successfully
| Params | |
|---|---|
| path | Text |
| local Path | Text |
File Uploaded¶
Fired when a file upload completes successfully
| Params | |
|---|---|
| path | Text |
Got File List¶
Fired when a file listing is retrieved
| Params | |
|---|---|
| files | List |
Got Signed URL¶
Fired when a signed URL is created
| Params | |
|---|---|
| url | Text |
| path | Text |
Methods¶
Create Signed URL¶
Create a time-limited signed URL for a private file
| Params | |
|---|---|
| path | Text |
| expires In | Number |
Delete File¶
Delete a file from Supabase Storage
| Params | |
|---|---|
| path | Text |
Download File¶
Download a file from Supabase Storage and save it locally
| Params | |
|---|---|
| path | Text |
| save To | Text |
Get Public URL¶
Returns: Text
Get the public URL for a file. This is synchronous (no network call).
| Params | |
|---|---|
| path | Text |
List Files¶
List files in the bucket with an optional path prefix
| Params | |
|---|---|
| prefix | Text |
Upload File¶
Upload a file to Supabase Storage. Creates or overwrites the file. Accepts plain file paths, content:// URIs (e.g. ImagePicker selections), file://, asset paths.
| Params | |
|---|---|
| path | Text |
| file Path | Text |
Properties¶
Access Token¶
Text Read Write - Blocks
JWT auth token from SupabaseAuthentication (optional). Set at runtime from SupabaseAuthentication.AccessToken after sign-in.
Bucket¶
Text Read Write - Designer Blocks
The bucket name to operate on
Project URL¶
Text Read Write - Designer Blocks
The Supabase project URL (e.g. https://xxx.supabase.co)
Publishable API Key¶
Text Read Write - Designer Blocks
The Supabase publishable API key