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

前端 未结 13 2029
执念已碎
执念已碎 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    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;
        }
      }
    }
    

提交回复
热议问题