form.parse does not callback when the submitted form is of x-www-form-urlencoded type in POSTMAN #818
-
I am using express-validator for validating fields in my form.
The issue is, In case user modifies the form type from Sorry if I am asking a simple/stupid question, I am just starting to learn MERN. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
You should check the err variable, |
Beta Was this translation helpful? Give feedback.
You should check the err variable,
next() should be inside the form.parse callback,
wrap form.parse it in a promise and await.
assign fields to the body