Object Storage
Object Storage
Most web applications require handling user uploads, such as profile pictures, PDF documents, or video files. BYOB makes managing object storage incredibly simple.
Enabling BYOB Storage
If you are using the native BYOB stack, object storage is typically handled via our integrated bucket bindings.
You can activate this with a single click:
- Open the Project Control Center.
- Navigate to the Data & Auth tab.
- Under the File storage section, click Enable BYOB Storage.
Once enabled, the AI can write the backend endpoint handlers needed to securely receive uploads or stream files. BYOB enforces a secure-by-default proxy pattern where all uploads and downloads go through your SvelteKit server routes, ensuring that Cloudflare credentials never leave the worker environment and files can be validated securely before touching the bucket. You can also use the Test files button in the control center to manually verify your bucket connections.
Supabase Storage
If you linked a Supabase project instead of BYOB DB, the AI will utilize the @supabase/supabase-js client to interact with Supabase Storage buckets. The AI can write code to upload files, generate public URLs, and enforce Row Level Security (RLS) on your buckets seamlessly.