Adding the express-body-parser should work (if is not a problem with formidable) Said that, i think that the data that has been send through HTTP has not been parsed.
const bodyParser = require('body-paraer') app.use('bodyParser', { urlencoded: true }) // for the xxx-url-form-urlencoded. Printing the entire req.body is a great way to ensure that, if you attempt that probability i'm wrong. :) Em terça-feira, 12 de novembro de 2019 17:13:02 UTC-2, nk escreveu: > > const express = require('express'); > const app = express(); > const formidable = require('formidable'); > > app.post('/upload', (req, res) => { > let form = new formidable.IncomingForm(); > form.parse(req, (err, fields, files) => { > if(err) { > console.log(err); > return res.send(err); > } else { > console.log(fields); > console.log(files); > return res.send(fields); > } > }); > app.listen(8080, () => console.log('App is running'); > > The following code throws the error after a long time. The error is - > > Error: Request aborted > > Request is sent through Postman with form-data Body, fields are > description(text) and input(file) > > -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/b45b42ab-45ef-498c-9e8b-6023dc073e41%40googlegroups.com.