Firebase Storage is giving StorageException while trying to upload images

后端 未结 14 2105
北海茫月
北海茫月 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:02

    I was having the same issue. It's not storage permission problem, i just changed the Firebase Storage Rules then solved.

    rules_version = '2';
    service firebase.storage {
      match /b/{bucket}/o {
        match /{allPaths=**} {
          allow read, write: if request.auth != null;
        }
      }
    }
    

    Above are default rules which works fine. Changing the condition may cause Exception. Please check your condition before use.

提交回复
热议问题