I have the following code:
func upload() { let localFile = usersImg! // Create the file metadata let metadata = StorageMetadata()