Skip to content

urielaero/skipper-pkgcloud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

skipper emblem - face of a ship's captain 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published