imagesRef = FIRStorage.storage().referenceForURL("gs://swift-storage.appspot.com").child("imag es/\(userUid)/\(imageId).\(fileExtension)") // Upload to Firebase storage imagesRef.putData(imageData, metadata: imgMetadata) { (metadata, error) -> Void in if (error == nil) { FIRAnalytics.logEventWithName("imgUploadSuccess", parameters: [ "content_type": fileExtension, ]) let gcsUri = imagesRef.description self.createRequest(gcsUri) // Send the image to the Vision API } } Step 1: Upload images to Firebase Storage 38