I'm working on an Android app that can show pdf files (with lectures). The files should be stored in the cloud, each user (student) should have access to them.
The idea is that users can't upload the files, they can only read them, so the files should be pre-uploaded. Is it possible to do in Cloud Firestore? I have searched a lot, but haven't found any opportunities to pre-upload files using computer and Firebase Console.
Thank you very much!
CodePudding user response:
As other have commented, uploading files is best done to Cloud Storage which can also be access as part of Firebase.
To implement your scenario, you can upload the files through the Firebase console, and then set the security rules to determine who can access those files either to allow only reads, or to not even allow those and instead use download URLs to access them.