Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit b0e8aee

Browse files
Merge pull request #309 from shripalsoni04/master
Fix to return downloadUrl in response of uploadFile for iOS
2 parents 56e88da + 8810f0b commit b0e8aee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

firebase.ios.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1540,7 +1540,7 @@ firebase.uploadFile = function (arg) {
15401540
} else {
15411541
resolve({
15421542
name: metadata.name,
1543-
url: metadata.downloadURL.absoluteString,
1543+
url: metadata.downloadURL() ? metadata.downloadURL().absoluteString : null,
15441544
contentType: metadata.contentType,
15451545
created: metadata.timeCreated,
15461546
updated: metadata.updated,

0 commit comments

Comments
 (0)