© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4mo ago•
2 replies
Idris

Storage or folder

I want to use storage for 2 goals.
Goal one, allow teachers to upload files to the subject. Teachers enrolled in a subject are allowed to upload. Students that can see a task that is linked to a upload in the subject are allowed to download. Should each subject be its own bucket? Or should i simply have one bucket called subject-uploads. and have a folder for each subject?
Goal two, (context. subjects have chapters which contain tasks, a task can be a assignment to which a student can upload their work) Should each assignment be its own buckets or should i just have one bucket called assignment-work. Where each assignment is its own folder and in there there is a folder for each student their upload.

Making just one private bucket makes more sense than one per subject or assignment for managing it. But who would be the owner of the bucket. And who should be the owner of the file, the user who uploaded it or the owner of the bucket?
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Delete Folder in Storage
SupabaseSSupabase / help-and-questions
4y ago
Storage only or storage + table?
SupabaseSSupabase / help-and-questions
2y ago
Storage: delete user folder using edge functions
SupabaseSSupabase / help-and-questions
6mo ago
Storage folders not saving
SupabaseSSupabase / help-and-questions
3y ago