File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -102,9 +102,9 @@ <h4>Example: Upload a file to Cloud Storage</h4>
102102 projectId: 'grape-spaceship-123'
103103});
104104
105- var gcs = gcloud.storage();
105+ var storage = gcloud.storage();
106106
107- var backups = gcs .bucket('backups');
107+ var backups = storage .bucket('backups');
108108backups.upload('db.zip', function(err, file) {
109109 // file.createReadStream();
110110 // file.getMetadata();
@@ -118,9 +118,9 @@ <h4>Example: Upload a file to Cloud Storage</h4>
118118 keyFilename: '/path/to/keyfile.json'
119119});
120120
121- var gcs = gcloud.storage();
121+ var storage = gcloud.storage();
122122
123- var backups = gcs .bucket('backups');
123+ var backups = storage .bucket('backups');
124124backups.upload('db.zip', function(err, file) {
125125 // file.createReadStream();
126126 // file.getMetadata();
You can’t perform that action at this time.
0 commit comments