In plain words
File storage is a separate service, such as Supabase Storage or Amazon S3, that keeps uploaded files and gives each one a path your database can save.
Where you see it
The Storage section in Supabase, with buckets like avatars and receipts. Guildhall's profiles table holds avatar_url, a short path, while the picture itself sits in the avatars bucket.
What goes wrong
- Saving the image inside the database
A picture turned into a long string of text, called base64, and saved in a text column makes the table balloon. Every query slows down and backups get huge.
avatar: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUg..." - A public bucket for private files
Anyone with the link can open a file in a public bucket. Receipts and ID scans belong in a private bucket, shared through links that expire.
- Deleting the row but not the file
Remove a member and their avatar stays in storage, costing money and holding personal data you promised to delete.
What to tell your agent
Quick check
Sign in to earn +10 XP for itGuildhall's members page has slowed to a crawl, and the profiles table is 2 GB for 3,000 members. What's filling it up?