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?
If you use Express (high-performance, high-class web development for Node.js), you can do this:
HTML:
API client:
Node.js: (since Express v4.16.0)
Node.js: (for Express <4.16.0)