tamotam-com / tamotam-app

(🧪 Early Beta) 🤙 TamoTam. HangOut. Offline.
https://tamotam.com
35 stars 4 forks source link

Store images added by users in Cloud Storage for Firebase #38

Closed danieldanielecki closed 1 year ago

danieldanielecki commented 2 years ago

Currently, after adding the pictures, the image is visible only to the user who has added this.

However, even for that user, after reloading of fetched events, it will show a no-image.jpeg image. It shouldn't be the case, but we don't save the image anywhere yet. The proposal is to use Cloud Storage for Firebase for storing an image and then map to that image in object for events created by users.

Docs: https://firebase.google.com/docs/storage

danieldanielecki commented 1 year ago

https://github.com/paulirish/trace.cafe/blob/main/storage.rules can be helpful

danieldanielecki commented 1 year ago

Fixed in https://github.com/tamotam-com/tamotam-app/commit/33e6a7486efd2724d89f72015ba4ca8206e9dfe0, https://github.com/tamotam-com/tamotam-app/commit/f08c981198510ac2db17e3e96f40e21bec00cb97 & https://github.com/tamotam-com/tamotam-app/commit/85013c67eae08719d04363d098dc05e92e0878ba.