Video by Joel Loh | AI Automations · streamed from YouTube. All rights remain with the creator.
Lesson 10: Uploading Posts to Supabase
About this lesson
In this part of the series, Joel Loh enables users to upload their own posts in the photo-sharing app, connecting the add post pages to the Supabase storage bucket and the posts table created in the previous parts. This is the moment the app starts working with real content. The video begins by uploading an image, using FlutterFlow's action for uploading media so that a photo chosen by the user is sent to the storage bucket. It then displays the uploaded image back on the page, so that users can see the photo they have selected before they finish creating their post. Next, the video adds the post details, such as the caption, and shows how to insert a row into the Supabase posts table containing the information about the new post, including where its image is stored. Once the post has been created, the app navigates back to the previous page so that the user returns to the main part of the app. The video then tests the whole flow to make sure that posts are uploaded and saved correctly, checking the results in Supabase, and makes an adjustment to the bottom navigation bar so that it behaves correctly with the new pages. A recap at the end summarises everything that was added. By the end of the video, users can create posts with their own photos and captions, stored in Supabase, and the next part queries the database and displays the posts inside the app. Afterwards, read Chapter 10 of the course book, which works out how image size affects the time users wait to share a post.