1 | # connect-multiparty
|
2 |
|
3 | This is a drop-in replacement for the
|
4 | [multipart connect middleware](https://github.com/senchalabs/connect/blob/master/lib/middleware/multipart.js).
|
5 |
|
6 | If
|
7 | [the pull request to merge into connect](https://github.com/senchalabs/connect/pull/786)
|
8 | is accepted, this project can go away.
|
9 |
|
10 | The connect test suite for multipart and bodyParser has been imported, and all
|
11 | tests pass.
|
12 |
|
13 | ## Usage
|
14 |
|
15 | ```js
|
16 | var bodyParser = require('connect-multiparty').bodyParser;
|
17 | app.use(bodyParser());
|
18 | ```
|
19 | or
|
20 |
|
21 | ```js
|
22 | var multipart = require('connect-multiparty').multipart;
|
23 | app.use(multipart());
|
24 | ```
|
25 |
|