StorageReference.putFile completion never called (if file errors) #2350
Closed
Description
- Xcode version: 10.1
- Firebase SDK version: 5.16
- Firebase Component: Storage
- Component version: 3.1.0
When using StorageReference.putFile
errors such as "no such file" gets silenced and the completion block is never called.
Relevant Code/Steps to reproduce
let localFile = URL(string: "non/existing/file/url")!
let ref = Storage.storage().reference(withPath: "folder/file")
ref.putFile(from: localFile, metadata: nil) { metadata, error in
print("I would expect this to be called with an error but it never does")
}
At first glance it seems like #1888 is related, but there it seemed like people had troubles uploading existing files as well.