express-mongoose-es6-rest-api icon indicating copy to clipboard operation
express-mongoose-es6-rest-api copied to clipboard

bodyParser: unable to obtain form-data from post request.

Open georgiosgiatsidis opened this issue 7 years ago • 0 comments

I can't obtain form-data of a post request. req.body is empty or undefined. I see in express.js app.use(bodyParser.urlencoded({ extended: true })); It seems to be ok but I don't know. I tried to make the same request in a clean express js rest api and it worked correctly.

The Content-type is application/json

georgiosgiatsidis avatar Apr 03 '18 16:04 georgiosgiatsidis