JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 560
  • Score
    100M100P100Q102226F
  • License MIT

A hook for wrapping file upload support with async/await in Sails.

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-uploads
var 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