How do you extract form data (form[method="post"]
) and file uploads sent from the HTTP POST
method in Node.js?
I've read the documentation, googled and found nothing.
function (request, response) {
//request.post????
}
Is there a library or a hack?
Best Answer
You can use the
querystring
module:Now, for example, if you have an
input
field with nameage
, you could access it using the variablepost
: