Receive Skipper's file uploads on your local filesystem
$ npm install skipper-disk --save
If you're using this module with Express, Connect, Kraken, or a vanilla Node.js server, make sure you have skipper itself installed as your body parser. This is the default configuration in Sails as of v0.10.
This module is bundled as the default file upload adapter in Skipper, so the following usage is slightly simpler than it is with the other Skipper file upload adapters.
In the route(s) / controller action(s) where you want to accept file uploads, do something like:
reqfile'avatar'upload// ...options here...if err return resnegotiateerr;else return resokfiles: uploadedFilestextParams: reqparamsall;;
For more detailed usage information and a full list of available options, see the Skipper repo, especially the section on "[https://github.com/balderdashy/skipper#uploading-files-to-disk](Uploading to Local Disk)".
Also be sure to check out ROADMAP.md in the Skipper repo.
To run the tests:
$ npm test
MIT © 2013, 2014-