@uppy/xhr-upload
Version:
Plain and simple classic HTML multipart form uploads with Uppy, as well as uploads using the HTTP PUT method.
48 lines (33 loc) • 1.52 kB
Markdown
<img src="https://uppy.io/img/logo.svg" width="120" alt="Uppy logo: a smiling puppy above a pink upwards arrow" align="right">
[](https://www.npmjs.com/package/@uppy/xhr-upload)



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.
```js
import Uppy from '@uppy/core'
import XHRUpload from '@uppy/xhr-upload'
const uppy = new Uppy()
uppy.use(XHRUpload, {
// Options
})
```
```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
[](https://uppy.io/docs/#Installation) for instructions.
Documentation for this plugin can be found on the
[](https://uppy.io/docs/xhr-upload).
[](./LICENSE).