# connect-multiparty

> multipart parsing middleware for connect using multiparty

Latest version **2.2.0** (published 2018-09-15) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install connect-multiparty
pnpm add connect-multiparty
yarn add connect-multiparty
bun add connect-multiparty
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 2.2.0 |
| Published | 2018-09-15 |
| First published | 2013-04-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 5 |
| Unpacked size | 8.5 KB |
| Known vulnerabilities | 1 (+5 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 348 |
| Author | Andrew Kelley |
| Maintainers | dougwilson, superjoe |

## Links

- npm: https://www.npmjs.com/package/connect-multiparty
- Repository: https://github.com/expressjs/connect-multiparty
- Homepage: https://github.com/expressjs/connect-multiparty#readme
- Issues: https://github.com/expressjs/connect-multiparty/issues
- npm.io page: https://npm.io/package/connect-multiparty

## Dependencies (5)

- [qs](https://npm.io/package/qs.md) ~6.5.2
- [type-is](https://npm.io/package/type-is.md) ~1.6.16
- [multiparty](https://npm.io/package/multiparty.md) ~4.2.1
- [http-errors](https://npm.io/package/http-errors.md) ~1.7.0
- [on-finished](https://npm.io/package/on-finished.md) ~2.3.0

## Recent versions

- 2.2.0 (latest) — 2018-09-15
- 2.1.1 — 2018-06-23
- 2.1.0 — 2017-10-19
- 2.0.0 — 2015-07-13
- 1.2.5 — 2014-10-15
- 1.2.4 — 2014-08-29
- 1.2.3 — 2014-08-28
- 1.2.2 — 2014-08-27
- 1.2.1 — 2014-08-08
- 1.2.0 — 2014-08-06
- 1.1.0 — 2014-07-04
- 1.0.6 — 2014-07-04
- 1.0.5 — 2014-06-02
- 1.0.4 — 2014-05-27
- 1.0.3 — 2014-01-20
- … 5 more at https://npm.io/package/connect-multiparty/versions

## README

# connect-multiparty

[![NPM Version][npm-image]][npm-url]
[![NPM Downloads][downloads-image]][downloads-url]
[![Build Status][travis-image]][travis-url]
[![Test Coverage][coveralls-image]][coveralls-url]

[connect](https://github.com/senchalabs/connect/) middleware for
[multiparty](https://github.com/andrewrk/node-multiparty/).

I actually recommend against using this module. It's cleaner to use the
multiparty API directly.

This middleware will create temp files on your server and never clean them
up. Thus you should not add this middleware to all routes; only to the ones
in which you want to accept uploads. And in these endpoints, be sure to
delete all temp files, even the ones that you don't use.

## Usage

```js
var multipart = require('connect-multiparty');
var multipartMiddleware = multipart();
app.post('/upload', multipartMiddleware, function(req, resp) {
  console.log(req.body, req.files);
  // don't forget to delete all req.files when done
});
```

If you pass options to `multipart()`, they are passed directly into
multiparty.

## License

[MIT](LICENSE)

[coveralls-image]: https://img.shields.io/coveralls/expressjs/connect-multiparty/master.svg
[coveralls-url]: https://coveralls.io/r/expressjs/connect-multiparty?branch=master
[downloads-image]: https://img.shields.io/npm/dm/connect-multiparty.svg
[downloads-url]: https://npmjs.org/package/connect-multiparty
[npm-image]: https://img.shields.io/npm/v/connect-multiparty.svg
[npm-url]: https://npmjs.org/package/connect-multiparty
[travis-image]: https://img.shields.io/travis/expressjs/connect-multiparty/master.svg
[travis-url]: https://travis-ci.org/expressjs/connect-multiparty

---
_Source: https://npm.io/package/connect-multiparty · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
