Closed majorb22 closed 2 years ago
res.status(200).json({ name: 'John Doe' }) should be inside the form.parse callback
Also you should have at least an if statement to see if there is an error in the form.parse callback see the examples https://github.com/node-formidable/formidable/blob/master/examples/with-express.js#L21
Thank you!
Support plan
Context
What are you trying to achieve or the steps to reproduce?
When I try to upload files from postman, the query can't be parsed, if I upload big files in it. I use the same function, don't change it, but if I attach a big file the parse callback function doesn't run, it logs nothing. The file is created in the uploads map, but nothing else happens.
What was the result you got?
Nothing was logged.
What result did you expect?
To log the files