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 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.