Chapter 6: Processing Form Data with Express
Unless you’re creating a static website, processing user data posted from an HTML form is at the heart of all web applications. In this chapter, you’ll learn how Express can:
- parse query string data typically sent in an HTTP GET request (see the “Processing HTTP GET Query Strings” section)
- parse posted body data typically sent in an HTTP POST request (see the “Processing HTTP Post Body Data” section)
- receive uploaded files typically sent in a
multipart/form-data
HTTP POST (see the “Processing Uploaded Files” section)
Code Examples
The Express examples provided below purposely omit some of the options recommended in the previous chapter. Dropping features such as compression, router middleware, ...
Get Node.js: Novice to Ninja now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.