Getting ready

We will continue to use an API client, such as Postman, for this chapter to test and develop our API endpoints. If you haven't installed Postman, or another client, I recommend that you do so to help make the cycle of retesting your requests much easier. Postman specifically supports the ability to set a form-data field to a file value, which is what we will need to test our multipart/form-data upload:

To parse our file uploads, we will also need a file upload parsing library called Multer. You must install Multer to your Express application's package.json file:

npm install multer --save

Get MEAN Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.