GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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
Filter options
  • lib/storage
    • file.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎lib/storage/file.js‎

Copy file name to clipboardExpand all lines: lib/storage/file.js
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1145,7 +1145,8 @@ File.prototype.getSignedPolicy = function(options, callback) {
11451145
* @throws {Error} if an expiration timestamp from the past is given.
11461146
*
11471147
* @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).
11491150
* @param {string=} options.contentMd5 - The MD5 digest value in base64. If you
11501151
* provide this, the client must provide this HTTP header with this same
11511152
* value in its request.
@@ -1202,7 +1203,7 @@ File.prototype.getSignedPolicy = function(options, callback) {
12021203
* }
12031204
*
12041205
* // The file is now available to be written to.
1205-
* var writeStream = request.post(url);
1206+
* var writeStream = request.put(url);
12061207
* writeStream.end('New data');
12071208
*
12081209
* writeStream.on('complete', function(resp) {

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.