Express JS modules to parse form-data text from Postman
This answer provides good detailing of the different use cases for html form
encoding. What does enctype='multipart/form-data' mean?
x-www-form-urlencoded is the default.multipart/form-data is for larger data sends, such as entire files.
Postman settings aside, if your server needs to handle multipart/form-data, install multer
and use it like so...
if just sending text fields in a multipart/form-data encoding:
var multer = require('multer')var multParse = multer()...function handler(req, res) { // fields will be parsed in req.body}...app.post('/', multParse.none(), handler)
Follow the multer
api on the multer github page if you actually are sending files and not just text fields.