README
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
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 :)