-
Notifications
You must be signed in to change notification settings - Fork 369
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: document destination option #633
Conversation
@@ -116,6 +116,8 @@ async function uploadFile(bucketName, filename) { | |||
await storage.bucket(bucketName).upload(filename, { | |||
// Support for HTTP requests made with `Accept-Encoding: gzip` | |||
gzip: true, | |||
// By setting the option `destination`, you can change the name of the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a little weird for me to read the comment in this context. I'd expect to see something like this above a destination
property in the obj, which could be commented out, but there for illustration.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so perhaps:
// destination: destinationFilename (defaults to filename)
Codecov Report
@@ Coverage Diff @@
## master #633 +/- ##
=======================================
Coverage 97.94% 97.94%
=======================================
Files 9 9
Lines 874 874
Branches 99 99
=======================================
Hits 856 856
Misses 9 9
Partials 9 9 Continue to review full report at Codecov.
|
It's often the case that a user wants to change the destination name of an object they're uploading, but it's pretty buried in the docs.