I\'m trying to write a stupidly simple Hello World program in Express that outputs some basic data about the current HTTP request.
For POST requests, I\'d like to se
If you required parsing of url-encoded (non-multipart) form data, as well as JSON, try adding:
var bodyParser = require('body-parser');
// Put these statements before you define any routes.
app.use(bodyParser.urlencoded({ extended: true}));
app.use(bodyParser.json());
To handle multi-part form data, the bodyParser.urlencoded() body parser will not work. you can refer this for alternatives of extracting data from form-data