File storage
Upload and manage files with V2 Cloud storage buckets.
File storage provides S3-like buckets for media uploads in your app — profile photos, attachments, generated images, etc.
Buckets
Buckets can be:
| Type | Access |
|---|---|
| Public | Anyone with the URL can read (good for avatars, public media) |
| Private | Requires authentication (user-owned files) |
The AI declares buckets when you ask for uploads. Example prompt:
App integration
Generated apps use ~/lib/storage for uploads and ~/lib/pick-image for image selection — do not import Expo ImagePicker directly in route files.
Dashboard
V2 Cloud → File Storage lets you:
- List buckets
- Browse uploaded files
- Upload or delete files manually
- Debug permission issues
File fields in collections
Collections can include file fields linked to buckets. Access rules on the collection row govern who can read/write the file reference.
