Error: invalid json with multer and body-parser
The problem is not that you have both libraries body-parser
and multer
. If you try to post with a browser extension like postman, please make sure Content-Type
is multipart/form-data
and not application/json
in your request header.