tos3
upload to s3 from external GET url
Install
$ npm install --save tos3
Usage
var tos3 = ;var url = 'http://www.cats.org.uk/uploads/branches/211/5507692-cat-m.jpg';var uploader = ; ;
API
config
Type: Object
AWS config properties
required
config.ACCESS_KEY Type: String
AWS S3 access key
required
config.SECRET_KEY Type: String
AWS S3 secret key
required
config.BUCKET Type: String
AWS S3 Bucket name
required
config.ACL Type: String
AWS S3 ACL
uploader(url, name, params)
required
url Type: String
Url to query from
name
Type: String
Default: uuid.v1()
New name for the file or default to auto generate from uuid
params
Type: Object
Default: {}
Extra params to pass along S3 upload
params
Related
License
MIT © Yu-Jin