I am new to firebase storage. Just so I could learn it, I made a simple app that has a button and an ImageView. When I click on the button, an image (from
Follow these steps
Go to "Storage"
Select "Rules" tab and edit rules as per below:
//if your application have authentication feature(login) then use this:-
rules_version = '2';
service firebase.storage {
match /b/{bucket}/o {
match /{allPaths=**} {
allow read, write: if request.auth != null;
}
}
}
//if your application does not have login feature(directly any user can access storage) then use this:-
rules_version = '2';
service firebase.storage {
match /b/{bucket}/o {
match /{allPaths=**} {
allow read, write;
}
}
}