From the course: Advanced Node.js

Unlock the full course today

Join today to access over 24,800 courses taught by industry experts.

Parsing multipart/form-data

Parsing multipart/form-data - Node.js Tutorial

From the course: Advanced Node.js

Parsing multipart/form-data

- [Instructor] In the last lesson we actually added an upload stream to our http server, so we can actually upload files. And we took our upload request stream and we piped it to several different writable streams. So, in this lesson, we're actually gonna handle parsing the multi-part form data and we're gonna use an npm to do that. The work to parse multi-part requests has been done many times over and it's been published to many different npms, so there's a lot of options when it comes to parsing a multi-part form data request. Since we're streaming experts, I've decided to use an npm that also supports streams. All right, so I'm gonna come over to my terminal, and before I install multi-party I just want to npm init to create a package.json and I can send it a dash-y just to answer all the questions as yes and then I get a package.json file in my root. It's always a good idea to have a package.json file once you start installing things with nmp, so I'm gonna go ahead and do an nmp…

Contents