11

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. ...

Get Building Production-Grade Web Applications with Supabase now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.