0.1.2 • Published 10 years ago

skipper-azure v0.1.2

Weekly downloads
87
License
MIT
Repository
github
Last release
10 years ago

Azure Blob Adapter

NPM version    

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

Installation

$ npm install skipper-azure --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-azure'),
  key: 'thekyehthethaeiaghadkthtekey'
  secret: 'AB2g1939eaGAdesoccertournament'
  container: 'my_stuff'
}, function whenDone(err, uploadedFiles) {
  if (err) return res.negotiate(err);
  else return res.ok({
    files: uploadedFiles,
    textParams: req.params.all()
  });
});

For more detailed usage information and a full list of available options, see the Skipper docs, especially the section on "https://github.com/balderdashy/skipper#uploading-files-to-s3(Uploading to S3)".

Questions & Contributions

If you have any questions on how to use the adapter, feel free to ask them on stackoverflow using the skipper-azure tag. If you want to contribute something to the project, feel free to create a pull request or open an issue.

To run the tests:

git clone git@github.com:lukasreichart/skipper-azure.git
cd skipper-azure
npm install
KEY= your_azure_storage_account SECRET=your_azure_access_secret CONTAINER=your_azure_bucket npm test

Please don't check in your azure credentials :)

License

MIT © 2015-

Lukas Reichart, Antum & contributors

See LICENSE.md.

This module is part of the Sails framework, and is free and open-source under the MIT License.

image_squidhome@2x.png

githalytics.com alpha