GeezerVison is showing github.com — storage: correct getSignedUrl example (#1313) · googleapis/google-cloud-node@38d7586
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: lib/storage/file.js +3-2Lines changed: 3 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -1145,7 +1145,8 @@ File.prototype.getSignedPolicy = function(options, callback) { |
1145 | 1145 | * @throws {Error} if an expiration timestamp from the past is given. |
1146 | 1146 | * |
1147 | 1147 | * @param {object} options - Configuration object. |
1148 | | - * @param {string} options.action - "read", "write", or "delete" |
| 1148 | + * @param {string} options.action - "read" (HTTP: GET), "write" (HTTP: PUT), or |
| 1149 | + * "delete" (HTTP: DELETE). |
1149 | 1150 | * @param {string=} options.contentMd5 - The MD5 digest value in base64. If you |
1150 | 1151 | * provide this, the client must provide this HTTP header with this same |
1151 | 1152 | * value in its request. |
@@ -1202,7 +1203,7 @@ File.prototype.getSignedPolicy = function(options, callback) { |
1202 | 1203 | * } |
1203 | 1204 | * |
1204 | 1205 | * // The file is now available to be written to. |
1205 | | - * var writeStream = request.post(url); |
| 1206 | + * var writeStream = request.put(url); |
1206 | 1207 | * writeStream.end('New data'); |
1207 | 1208 | * |
1208 | 1209 | * writeStream.on('complete', function(resp) { |
|