Watch: Let users upload photos and files to my app | Vovy

Watch Vovy do it on a Mac: "Set up Supabase Storage so users can upload profile photos". Create a Supabase Storage bucket, choose public or private, add upload policies, and wire an upload button in your app.

"Set up Supabase Storage so users can upload profile photos"

Create a Supabase Storage bucket, choose public or private, add upload policies, and wire an upload button in your app.

What happens in the video

  1. Create a bucket: A bucket is a folder for files. Vovy opens Storage in Supabase, clicks New bucket, and names it for what goes inside, like avatars.
  2. Choose public or private: A card explains: public buckets give anyone a link, fine for profile photos. Private ones need signed links, best for invoices or IDs.
  3. Set size and file type limits: Vovy sets a max file size and allowed types like image/png and image/jpeg, so nobody uploads a 2 GB video to your avatars bucket.
  4. Add upload policies: Uploads are blocked until you add policies. Vovy writes ones that let each user upload only into their own folder.
  5. Wire the upload button: Vovy asks your editor to add an upload button that saves to the bucket, then tests it with a real image and shows the file in Supabase.
Read the step-by-step guide