diff --git a/docs/storage/usage/index.md b/docs/storage/usage/index.md index 561e7c7e..30d1b885 100644 --- a/docs/storage/usage/index.md +++ b/docs/storage/usage/index.md @@ -103,7 +103,7 @@ such as the current upload progress: const task = reference.putFile(pathToFile); task.on('state_changed', taskSnapshot => { - console.log(`${taskSnapshot.bytesTransferred} transferred out of ${task.totalBytes}`); + console.log(`${taskSnapshot.bytesTransferred} transferred out of ${taskSnapshot.totalBytes}`); }); task.then(() => {