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/bd07d645-c9ac-4794-b617-05fb1b96c93b%40googlegroups.com.