Demo of multipart form/file uploading with hapi.js
.
npm install
npm run setup
npm run server
Then ...
npm run test
... or try:
curl --form file=@data.csv \
--form firstName=Melvin \
--form lastName=Mooney \
http://localhost:8080/submit
Other multipart/form-data
demos:
I'm using content-type as application/octet-stream and data.file is undefined. Any ideas? I'm using application/octet-stream as the service i'm going to pass the file to needs that, not quite sure if having application/octet-stream is required in the hapi path?