10000 Small fix to the storage sample. · Dottenpixel/quickstart-js@af08715 · GitHub
[go: up one dir, main page]

Skip to content

Commit af08715

Browse files
author
Nicolas Garnier
committed
Small fix to the storage sample.
Change-Id: Ia163311da6700c402f9b7f47ec14240c14f89db1
1 parent 6be808c commit af08715

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

storage/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ <h6>File URL:</h6>
8989
storageRef.child('images/' + file.name).put(file, metadata).then(function(snapshot) {
9090
console.log('Uploaded', snapshot.totalBytes, 'bytes.');
9191
console.log(snapshot.metadata);
92-
var url = snapshot.metadata.downloadURLs[0];
92+
var url = snapshot.downloadURL;
9393
console.log('File available at', url);
9494
// [START_EXCLUDE]
9595
document.getElementById('linkbox').innerHTML = '<a href="' + url + '">Click For File</a>';

0 commit comments

Comments
 (0)
0