@codeschneider/skipper-s3-alt
v0.0.4
Published
Streaming file uploads to S3 with support for extra knox options
Downloads
7
Maintainers
Readme
Sails S3 Adapter
Installation
$ npm install skipper-s3-alt --save
Usage
req.file('avatar')
.upload({
// Required
adapter: require('skipper-s3-alt'),
key: 'thekyehthethaeiaghadkthtekey',
secret: 'AB2g1939eaGAdesoccertournament',
bucket: 'my_stuff',
// Optional
token: 'temporary_sts_creds'
}, function whenDone(err, uploadedFiles) {
if (err) {
return res.serverError(err);
}
return res.ok({
files: uploadedFiles,
textParams: req.params.all()
});
});