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

前端 未结 13 2034
执念已碎
执念已碎 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 20:59

    So the I had the same problem and I easily fixed it!, so this is not a problem with firebase, but the problem is that your file can not be accessed from your local disk!

    
    

    for api 21+ you will need to request permission, for security reasons, check this article for more information: How to request storage permission

提交回复
热议问题