Storage
In this section, weβll explore how Supabase Storage lets your app get and serve files such as images, videos, and documents securely β all integrated within your Supabase project.
What is Bucket?β
A Supabase Bucket is a storage container in Supabase where you can upload, organize, and manage files such as images, videos, or documents.
Create Bucketβ
First, go to the Storage section from the Supabase dashboard sidebar.
Click new bucket, then give your bucket a name (e.g. user-uploads) and choose whether it should be Public or Private, click Create.
Most Frequently Used Storage Queriesβ
Upload β add filesβ
Use Upload when you want to add new files to your storage bucket.
You might upload a profile picture, a document, or an image that users can later access.
Download β retrieve filesβ
Use Download when you need to get a file from your storage.
This is useful when displaying images, downloading PDFs, or letting users access stored content.
Get Public URL β share filesβ
Use Get Public URL when you want to generate a link so others can view or download a file without needing authentication.
Itβs perfect for public profile pictures or shared media.
List Files β view stored contentβ
Use List Files when you need to see what files exist in a bucket or folder.
This helps you show available uploads, manage user files, or display file galleries.
Move or Copy β organize filesβ
Use Move to rename or relocate a file within your storage, and Copy to make duplicates.
These are handy when reorganizing folders or when users update filenames.