s3_upload_resize
A simple way to upload files to s3 and, optionally, resize them. Uses s3.upload().
Installation
$ npm install --save s3_upload_resize
Usage
Upload
var s3UploadResize = ;var rName = 'test/resize_test.jpg';s3UploadResize;
Initialization (optional)
You can pass a different logger
or extraOptions
(See: http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3.html#createMultipartUpload-property )
var s3UploadResize = ;var debug = 'mymodule'; s3UploadResize; var rName = 'test/resize_test2.jpg';s3UploadResize;
NOTES
You must have the AWS_ACCESS_KEY_ID and the AWS_SECRET_ACCESS_KEY in the environment to complete the upload to s3.
License
The MIT License (MIT)