FIRStorageErrorDomain Code=-13010

本秂侑毒 提交于 2019-12-11 02:34:13

问题


I get an unfilled UIImageView with this error in Console

"Object images does not exist."

Here is the code:

 // download image
    let gsReference = Storage.storage().reference(forURL: "gs://myaddress.appspot.com/post-pics/")
        let imageStorageRef = storageRef.child("images/")
        imageStorageRef.getData(maxSize: 2 * 1024 * 1024) { data, error in
            if let error = error {
                print("******** \(error)")
            } else {

                    let image = UIImage(data: data!)

                }
            }

回答1:


Your Reference to the download is incorrect. Check your current StorageRef url path, or ImageStorageRef. Make sure its something like this:

let gsReference = Storage.storage().reference().child(auth.auth().currentUser.uid).child("post-pics")


来源:https://stackoverflow.com/questions/50110374/firstorageerrordomain-code-13010

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!