Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

33 lines (21 sloc) 0.927 kb

See node-plan.

See also node-plan-s3-download.

input

  • tempPath - the local file to upload to s3

output

none

options

  • s3Key
  • s3Secret
  • s3Bucket
  • url - string file path destination. These interpolations are available:
    • {ext} - the extension of tempPath from the input. includes the '.'.
    • {uuid} - a newly generated UUID string. looks something like this: 064c06bf-84e8-4a54-b0d2-d7acdefe20d2
    • {brace} - a literal '{'
  • secure - boolean, whether to use SSL. Note that you cannot use SSL if your bucket contains a period. Defaults to false.

exports

  • bucket - copied directly from options
  • url - rendered url after applying interpolations

Testing

S3_KEY=<valid_s3_key> S3_SECRET=<valid_s3_secret> S3_BUCKET=<valid_s3_bucket> npm test

Jump to Line
Something went wrong with that request. Please try again.