# @uppy/xhr-upload

> Plain and simple classic HTML multipart form uploads with Uppy, as well as uploads using the HTTP PUT method.

Latest version **6.0.0** (published 2026-08-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install @uppy/xhr-upload
pnpm add @uppy/xhr-upload
yarn add @uppy/xhr-upload
bun add @uppy/xhr-upload
```

## Health

**Score 65/100 (B)** — status: active.

Positive: esm support; no vulnerabilities; recently updated; high maintenance score; popular repo.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 6.0.0 |
| Published | 2026-08-26 |
| First published | 2018-06-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Dependencies | 0 |
| Unpacked size | 68.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 30975 |
| Maintainers | kvz, tim-kos, mifi, uppydev |
| Keywords | file uploader, xhr, xhr upload, XMLHttpRequest, ajax, fetch, uppy, uppy-plugin |

## Links

- npm: https://www.npmjs.com/package/@uppy/xhr-upload
- Repository: https://github.com/transloadit/uppy
- Homepage: https://uppy.io
- Issues: https://github.com/transloadit/uppy/issues
- npm.io page: https://npm.io/package/@uppy/xhr-upload

## Alternatives

- [launchdarkly-js-client-sdk](https://npm.io/package/launchdarkly-js-client-sdk.md) — 2.5M weekly downloads
- [@elastic/elasticsearch](https://npm.io/package/@elastic/elasticsearch.md) — 2.1M weekly downloads
- [@c8y/client](https://npm.io/package/@c8y/client.md) — 15.3K weekly downloads
- [@signaldb/maverickjs](https://npm.io/package/@signaldb/maverickjs.md) — 1.7K weekly downloads
- [@bbc/http-transport-cache](https://npm.io/package/@bbc/http-transport-cache.md) — 1.2K weekly downloads

## Recent versions

- 6.0.0 (latest) — 2026-08-26
- 4.0.0-beta.7 (next) — 2024-06-27
- 5.2.0 — 2026-03-25
- 5.1.1 — 2025-12-09
- 5.1.0 — 2025-12-02
- 5.0.2 — 2025-10-22
- 5.0.1 — 2025-09-16
- 5.0.0 — 2025-08-22
- 4.4.2 — 2025-08-01
- 4.4.1 — 2025-07-29
- 4.4.0 — 2025-07-29
- 4.3.3 — 2025-02-25
- 4.3.2 — 2025-01-09
- 4.3.1 — 2025-01-08
- 4.3.0 — 2025-01-06
- … 110 more at https://npm.io/package/@uppy/xhr-upload/versions

## README

# @uppy/xhr-upload

<img src="https://uppy.io/img/logo.svg" width="120" alt="Uppy logo: a smiling puppy above a pink upwards arrow" align="right">

[![npm version](https://img.shields.io/npm/v/@uppy/xhr-upload.svg?style=flat-square)](https://www.npmjs.com/package/@uppy/xhr-upload)
![CI status for Uppy tests](https://github.com/transloadit/uppy/workflows/CI/badge.svg)
![CI status for Companion tests](https://github.com/transloadit/uppy/workflows/Companion/badge.svg)
![CI status for browser tests](https://github.com/transloadit/uppy/workflows/End-to-end%20tests/badge.svg)

The XHRUpload plugin handles classic XHR uploads with Uppy. If you have an
exiting Apache/Nginx/Node or whatever backend, this is probably the Uppy
uploader plugin you are looking for.

Uppy is being developed by the folks at [Transloadit](https://transloadit.com),
a versatile file encoding service.

## Example

```js
import Uppy from '@uppy/core'
import XHRUpload from '@uppy/xhr-upload'

const uppy = new Uppy()
uppy.use(XHRUpload, {
  // Options
})
```

## Installation

```bash
$ npm install @uppy/xhr-upload
```

Alternatively, you can also use this plugin in a pre-built bundle from
Transloadit’s CDN: Smart CDN. In that case `Uppy` will attach itself to the
global `window.Uppy` object. See the
[main Uppy documentation](https://uppy.io/docs/#Installation) for instructions.

## Documentation

Documentation for this plugin can be found on the
[Uppy website](https://uppy.io/docs/xhr-upload).

## License

[The MIT License](./LICENSE).

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