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

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

    For me this error was triggered when uploading a 0.0 KB image file; that is because I was testing image compression algorithm that has a bug resulting in 0.0 KB image in some cases.

    So, make sure that the image/file you upload is greater than 0 KB.

提交回复
热议问题