note the need to install form-data@2 when using forms

This commit is contained in:
AJ ONeal 2018-09-16 21:02:53 -06:00
parent 49daa68225
commit 4eaf68966c
1 changed files with 5 additions and 0 deletions

View File

@ -53,6 +53,11 @@ request.post('http://service.com/upload').form({key:'value'})
For `multipart/form-data` we use the [form-data](https://github.com/form-data/form-data) library by [@felixge](https://github.com/felixge). For the most cases, you can pass your upload form data via the `formData` option.
To use `form-data`, you must install it separately:
```bash
npm install --save form-data@2
```
```js
var formData = {