Can someone please tell me the recommended (up to date) way to get POSTed form data in express.
So many tutorials/ posts etc talk about bodyParser but this is no lon
From the README of body-parser:
This does not handle multipart bodies, due to their complex and typically large nature.
The above is going to work with x-www-form-urlencoded
and json
but it will NOT work with any multipart
. form-data
is also multipart
with the header multipart/form-data
.
In case of form-data
, your best solution would be to use express-formidable.