file-upload-hapi
file-upload-hapi copied to clipboard
File upload with Node, Hapi, Typescript
File upload with Node, Hapi, Typescript
Please refer to tutorial https://scotch.io/bar-talk/handling-file-uploads-with-hapi-js.
- Install nodejs (version 8.9+) and yarn.
- Go to project directory, run
yarn
. - Start the application, run
yarn start
. - Go to
localhost:3001
API End Points
- Upload an image via
localhost:3001/profile
, avatar field. - Bulk Upload images via
localhost:3001/photos/upload
, photos field. - View list of images via
localhost:3001/images
. - Get a single image via
localhost:3001/images/{imageId}
.
Changes
- 2018-04-02: Update to use latest hapi v17. Breaking changes.