Skip to content

formidable parse function not working for multipart form data #653

@chitkarian-19

Description

@chitkarian-19

Error: Request aborted
at IncomingMessage. (C:\Users\ENV-08\Desktop\App\my-event-app\projbackend\node_modules\formidable\lib\incoming_form.js:122:19)
at IncomingMessage.emit (events.js:198:13)
at abortIncoming (_http_server.js:448:9)
at socketOnClose (_http_server.js:441:3)
at Socket.emit (events.js:203:15)
at TCP._handle.close (net.js:606:12) {} {}

I am submitting blank data or form filled with multipart data but this error is coming again and again.
I am not able to configure that why form.parse(req,(err, fields, file)) is not working but when I am posting multipart form data using postman API, form.parse() is working fine there and multipart form data is easily getting saved into DB.

  • node version: v10.16.3
  • module (formidable) version: ^1.2.2
  • environment (e.g. node, browser, native, OS): node,browser
  • used with (i.e. popular names of modules): body-parser()
  • any other relevant information:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions