Video by Joel Loh | AI Automations · streamed from YouTube. All rights remain with the creator.
Lesson 9: Supabase Storage Buckets
About this lesson
In this short part of the series, Joel Loh introduces Supabase Storage buckets, the place where the photo-sharing app keeps its unstructured data, such as the images that users post and other media files like audio. While tables are designed to store structured information in rows and columns, files such as photos need a different kind of storage, and this video explains the difference. It begins by explaining what a bucket is: a container in Supabase Storage that holds files, much like a folder in the cloud, and how it relates to the tables created in the previous part. With the posts table already in place to hold the details of each post, the video shows how the images themselves will be kept separately in storage. You then create a bucket in Supabase for the app's images, ready to receive the photos that users upload when they create a post. Finally, the video adds an allow-all policy to the bucket, which permits the app to read and write files so that uploading and displaying images works straight away during development, and it explains the role that policies play in controlling who can access the files in a bucket. By the end of this quick video, the app has a storage bucket set up and ready to use, and the next part connects the add post pages to the bucket and the posts table, so that users can upload their own photos and see them appear in the app. Afterwards, read Chapter 9 of the course book, which works out how much image compression saves in storage and bandwidth.