Hi, right after uploading a file I need to get it back and Storage returns a 404: ``` javascript fs.createReadStream('/local/photo.jpg').pipe(bucket.file('photo.jpg').createWriteStream().on('finish', function(){ console.log('write finished'); bucket.file('photo.jpg').createReadStream().pipe(fs.createWriteStream('/downloaded.jpg')); })); ``` Is there a better callback to know when a file is fully uploaded to Storage please ? Thanks
Activity
pierre-b commentedon Jan 5, 2015
Thanks to @ngrilly the event is not "finish" but "complete":
stephenplusplus commentedon Jan 5, 2015
Glad you got this resolved! Thanks, @ngrilly!
pierre-b commentedon Jan 6, 2015
@stephenplusplus An update of the docs would be nice ;)
build: adopt changes to generator formatting (#340)
chore(deps): update dependency eslint-plugin-node to v11 (#340)
build: adopt changes to generator formatting (#340)
build: adopt changes to generator formatting (#340)
build: adopt changes to generator formatting (#340)
32 remaining items
chore: release 1.0.1 (#340)
build: use config file for linkinator (#340)
Release v0.6.3 (#340)
Release v0.6.3 (#340)
fix(deps): update dependency @google-cloud/common to ^0.23.0 (#340)
Release v0.6.3 (#340)
feat: release v4.1.1 (#340)
chore: remove compile protos from post processor (#340)
chore: remove compile protos from post processor (#340)
Release v0.29.0 (#340)
fix(deps): update dependency @google-cloud/common to ^0.23.0 (googlea…
chore: remove old issue template (#340)
chore: remove old issue template (#340)
chore: remove old issue template (#340)
chore: remove old issue template (googleapis#340)