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

前端 未结 13 2027
执念已碎
执念已碎 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:36

    You can't use putFile() with an HTTP type Uri. According to the documentation, you're supposed to use it to upload a local file.

    If you want to upload a file to Storage that exists somewhere else referenced by an HTTP URL, you'll have to download that file first, store it locally, then upload it.

提交回复
热议问题