0.0.5 • Published 7 years ago

skipper-pkgcloud v0.0.5

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

pkgCloud Blob Adapter

pkgCloud adapter for receiving upstreams. Particularly useful for handling streaming multipart file uploads from the Skipper body parser.

Installation

$ npm install skipper-pkgcloud --save

Also make sure you have skipper itself installed as your body parser. This is the default configuration in Sails as of v0.10.

Usage

req.file('avatar')
.upload({
  adapter: require('skipper-pkgcloud'),
  provider: 'rackspace',
  username: 'usernameprovider',
  apiKey: 'apikey provider',
  container: 'my_container_name',
  region:'DFW'
}, function whenDone(err, uploadedFiles) {
  if (err) return res.negotiate(err);
  else return res.ok({
    files: uploadedFiles,
    textParams: req.params.all()
  });
});

See pkgCloud

pkgcloud

Contribute

To run the tests:

git clone git@github.com:urielaero/skipper-pkgcloud.git
cd skipper-pkgcloud
npm install
CLOUDPROVIDER=defualtRackspace CLOUDUSERNAME=your_username CLOUDAPIKEY=your_cloudapikey, CLOUDREGION=your_cloudregion, CLOUDCONTAINER=your_container_name

Please don't check in your provider credentials :)

License

MIT

0.0.5

7 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago

0.0.0

9 years ago