Package Exports
- sails-hook-uploads
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (sails-hook-uploads) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
sails-hook-uploads
Adds an easier interface for working with file uploads and downloads in your Node.js/Sails app. Supports ES8 async/await.
Only supports Node 8 and up.
This is not a core hook in the Sails.js framework -- it is a 3rd party hook. You can override or disable it using your sailsrc file or environment variables. See Concepts > Configuration for more information.
npm install sails-hook-uploadsvar uploaded = await sails.uploadOne(inputs.myFile);For more usage tips, see the Platzi course on Sails.js.
License
MIT
© 2017-present Rachael Shaw, Mike McNeil