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