Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error in Firebase Permission - Unable to access bucket through firebase storage

Tags:

firebase

I try to upload some file to Firebase. But the console shows me this error:

{"code": 400, "message": "Permission denied. Could not access bucket educasys-e422a.appspot.com. Please enable Firebase Storage for your bucket by visiting the Storage tab in the Firebase Console and ensure that you have sufficient permission to properly provision resources."}

My Firebase database (Educasys) rules:

service cloud.firestore {
   match /databases/{database}/documents {
      match /{document=**} {
         allow read, write;
      }
   }
}

FireBase Image

What can I do?

like image 972
Luke Alves Avatar asked Sep 01 '25 02:09

Luke Alves


1 Answers

I think you misunderstood something. FireStore is also database, don't get fooled by the name. It's a new database service by Firebase, it supports more features when compared to Firebase, e.g. More queries allowed, performance enhancement, etc.

You're trying to upload files to Firebase, therefore, don't go to FireStore, go to the storage option on the left panel and change the rules there:

enter image description here

Then change your rules like this:

enter image description here

like image 139
K.Wu Avatar answered Sep 02 '25 20:09

K.Wu