Skip to content

Commit

Permalink
Merge pull request #1089 from stephenplusplus/spp--1087
Browse files Browse the repository at this point in the history
storage: define options.metadata
  • Loading branch information
callmehiphop committed Jan 26, 2016
2 parents 073dd09 + 135259a commit fb2cf47
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/storage/bucket.js
Original file line number Diff line number Diff line change
Expand Up @@ -989,7 +989,8 @@ Bucket.prototype.makePublic = function(options, callback) {
* bucket using the name of the local file.
* @param {boolean} options.gzip - Automatically gzip the file. This will set
* `options.metadata.contentEncoding` to `gzip`.
* @param {object=} options.metadata - Metadata to set for your file.
* @param {object=} options.metadata - See an
* [Objects: insert request body](https://cloud.google.com/storage/docs/json_api/v1/objects/insert#request_properties_JSON).
* @param {boolean=} options.resumable - Force a resumable upload. (default:
* true for files larger than 5 MB).
* @param {function} callback - The callback function.
Expand Down
3 changes: 2 additions & 1 deletion lib/storage/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,8 @@ File.prototype.createResumableUpload = function(metadata, callback) {
* @param {object=} options - Configuration object.
* @param {boolean} options.gzip - Automatically gzip the file. This will set
* `options.metadata.contentEncoding` to `gzip`.
* @param {object} options.metadata - Set the metadata for this file.
* @param {object=} options.metadata - See an
* [Objects: insert request body](https://cloud.google.com/storage/docs/json_api/v1/objects/insert#request_properties_JSON).
* @param {boolean} options.resumable - Force a resumable upload. NOTE: When
* working with streams, the file format and size is unknown until it's
* completely consumed. Because of this, it's best for you to be explicit
Expand Down

0 comments on commit fb2cf47

Please sign in to comment.