Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

s3.put()

SaltwaterC edited this page · 4 revisions

About

Low level method for sending PUT requests to the S3 REST API.

Reference

s3.put(path, headers, reqBodyHandler, callback)
  • 'path' - the S3 Path.
  • 'headers' - an object containing the HTTP headers you may want to pass to the PUT request, such as the x-amz-* metadata headers.
  • 'resBodyHandler' - the Request Body Handler.
  • 'callback' - the callback that is executed when the processing finishes. It has a couple of arguments: error and result.
    • If there's an error, the callback receives the error argument as Error instance.
    • If the error argument is null, then the response argument contains the response.headers object as returned by the node.js core HTTPS client.
Something went wrong with that request. Please try again.