After a lot of searching for 3 days, I finally found a video which is a much simpler,cleaner and beginner friendly tutorial. Thanks a ton man! . Love from India. ❤
actully i used MongoDB Atlas but for images saving i want to use Firebase Storage is above given code is sufficient for it or i have to do complete setup at backend ?
Suppose if i upload a picture in the firebase and again upload the another picture then i want to automatically delete the previous picture from the firebase how to achieve that ?
I have an app in production and I want all users to be able to see the images but only the page owner can upload the images, how can I configure that in the rules? I want to do that but I get 'Could not save rules: An unknown error occurred'
if your referring to the firebase rules, then u would have to edit the storage rules, to allow all users to read ( read: true; ) then u would have to create a check with the write rule, something like ( write : if( user == admin) .. something like that in your rules, so u would need a method to differentiate ur admin from ur users
oh its a const in my firebase-config file, you can export it by writing "export" before the "const", this way you can use it from any file in your application
After a lot of searching for 3 days, I finally found a video which is a much simpler,cleaner and beginner friendly tutorial. Thanks a ton man! . Love from India. ❤
Uwc bro
Much love bro! I need a vid demonstration for this
Very useful. Thanks a lot
Uwc
tanku bro 🦋🦋
actully i used MongoDB Atlas but for images saving i want to use Firebase Storage
is above given code is sufficient for it or i have to do complete setup at backend ?
well ud need to go to ur firebase console and kick start ur firebase storage
Suppose if i upload a picture in the firebase and again upload the another picture then i want to automatically delete the previous picture from the firebase how to achieve that ?
you would first delete the image in that folder before uploading your new image
I subscribe, bro thanks for everything, suggestion to use the easiest code possible
That’s the best route … Uwc
I have an app in production and I want all users to be able to see the images but only the page owner can upload the images, how can I configure that in the rules? I want to do that but I get 'Could not save rules: An unknown error occurred'
if your referring to the firebase rules, then u would have to edit the storage rules, to allow all users to read ( read: true; ) then u would have to create a check with the write rule, something like ( write : if( user == admin) .. something like that in your rules, so u would need a method to differentiate ur admin from ur users
How did you export storage from the firebase-config file?
oh its a const in my firebase-config file, you can export it by writing "export" before the "const", this way you can use it from any file in your application