Supabaseintermediate
Add File Uploads
Private file storage with type and size limits, and access checked per request.
When to use it
Documents and images
Lovable Prompt
Add file uploads to [FEATURE]. Requirements: - Store files in a private bucket. Do not use public URLs. - Restrict allowed file types to [LIST] and a maximum size of [SIZE]. - Validate the type and size on the server, not just in the browser. - Generate short-lived access links when a permitted user requests a file. - Record each upload against the owning user and record in the database. - Show upload progress, and handle failed uploads with a retry. Acceptance criteria: another signed-in user cannot open my file, and a signed-out visitor cannot either.
Why it works
It makes privacy and server-side validation explicit requirements with a testable acceptance criterion.