Firebase Storage is giving StorageException while trying to upload images

后端 未结 14 1928
北海茫月
北海茫月 2021-01-13 03:10

I have been trying to upload images to the new firebase storage service . It is throwing StorageException

E/StorageException: StorageException has occ

14条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-13 04:14

    In your firebase console, go to the storage tab on the left. Click on the rules tab and set your rule to public. Use the following code to set it to public.

    service firebase.storage {
      match /b/{bucket}/o {
        match /{allPaths=**} {
          allow read, write;
        }
      }
    }
    

    This is good for testing purpose, however, you should secure your DB connection using authenticate users.

提交回复
热议问题