Adding, Securing, and Serving File Uploads with Supabase Storage
In the previous chapter, you made your app more interactive by implementing Realtime comments. What’s missing is the possibility of uploading files in a ticket to allow users to communicate better.
In this chapter, you’ll become friends with the Supabase Storage feature to implement file uploads within ticket comments. You will see how to upload and delete files, secure them from unwanted access with special RLS policies, and bind them logically to comments and consequently to users.
Besides learning how to enable and control file uploads, specifically for image files, you’ll learn how to serve them visually right in your application in combination with the Supabase Image Transformations. Also, I’ll show you how you could build your own image-serving backend.
After having learned about setting RLS policies for Storage, at the end of the chapter, I’ll give you additional guidance...