I used a sample Firebase friendly chat when uploading an image. Getting a response with an optional string. what is missing
Optional(FIRStorageMetadata 0x7fc84aced790: { bucket = "abc.appspot.com"; contentEncoding = identity; contentType = "image/jpeg"; downloadTokens = "abctoken"; generation = 1231231; metageneration = 1; name = "Optional(\"S5CKnKUykANdxSvZ3wujpMXHTvg1\")/494509700277/asset.JPG"; timeCreated = "2016-09-02T11:49:00.114Z"; updated = "2016-09-02T11:49:00.114Z"; })
My code is:
let filePath = "(FIRAuth.auth()!.currentUser!.uid)/(Int(NSDate.timeIntervalSinceReferenceDate() * 1000))/(referenceUrl.lastPathComponent!)"
was written with an extra value (?) in the sample, so I convert it (!)
ios firebase firebase-storage
Alizain prasla
source share