StorageException: An unknown error occurred, please check the HTTP result code and inner exception for server response

前端 未结 13 2066
执念已碎
执念已碎 2021-02-09 20:19

I use Firebase Storage to upfile. But it does not work THIS IS MY CODE.

FirebaseStorage storage = FirebaseStorage.getInstance();
StorageReference sto         


        
相关标签:
13条回答
  • 2021-02-09 21:00

    In my case I had to paste the rule below and publish on my storage.

    service firebase.storage {
      match /b/{bucket}/o {
        match /{allPaths=**} {
          allow read, write: if true;
        }
      }
    }
    
    0 讨论(0)
提交回复
热议问题