# @vaadin/upload

> Web Component for uploading files with drag and drop support

Latest version **25.3.5** (published 2026-10-29) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @vaadin/upload
pnpm add @vaadin/upload
yarn add @vaadin/upload
bun add @vaadin/upload
```

## Health

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

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 25.3.5 |
| Published | 2026-10-29 |
| First published | 2021-10-08 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 7 |
| Unpacked size | 382.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 583 |
| Author | Vaadin Ltd |
| Maintainers | web-padawan, platosha, jouni, manolo, yuriyyev, vaadin-owner, tomivirkki, artur-, sunzhewyq, sissbruecker |
| Keywords | Vaadin, upload, web-components, web-component |

## Links

- npm: https://www.npmjs.com/package/@vaadin/upload
- Repository: https://github.com/vaadin/web-components
- Homepage: https://vaadin.com/components
- Issues: https://github.com/vaadin/web-components/issues
- npm.io page: https://npm.io/package/@vaadin/upload

## Dependencies (7)

- [lit](https://npm.io/package/lit.md) ^3.0.0
- [@vaadin/button](https://npm.io/package/@vaadin/button.md) ~25.3.5
- [@vaadin/a11y-base](https://npm.io/package/@vaadin/a11y-base.md) ~25.3.5
- [@vaadin/progress-bar](https://npm.io/package/@vaadin/progress-bar.md) ~25.3.5
- [@open-wc/dedupe-mixin](https://npm.io/package/@open-wc/dedupe-mixin.md) ^1.3.0
- [@vaadin/component-base](https://npm.io/package/@vaadin/component-base.md) ~25.3.5
- [@vaadin/vaadin-themable-mixin](https://npm.io/package/@vaadin/vaadin-themable-mixin.md) ~25.3.5

## Recent versions

- 25.3.5 (latest) — 2026-10-29
- 25.4.0-alpha5 (next) — 2026-10-30
- 25.4.0-dev.c9532cd333 (dev-table-theme) — 2026-09-30
- 25.3.0-dev.1fa5a51482 (dev-disable-dates) — 2026-07-25
- 24.4.0-dev.4b20a0c55.3 (canary) — 2024-03-22
- 24.10.10 — 2026-11-02
- 24.9.22 — 2026-11-02
- 25.2.17 — 2026-10-29
- 23.6.8 — 2026-10-29
- 24.9.21 — 2026-10-29
- 24.10.9 — 2026-10-29
- 24.4.21 — 2026-10-23
- 25.3.4 — 2026-10-22
- 25.4.0-alpha4 — 2026-10-21
- 25.2.16 — 2026-10-21
- … 667 more at https://npm.io/package/@vaadin/upload/versions

## README

# @vaadin/upload

A web component for uploading files.

[Documentation + Live Demo ↗](https://vaadin.com/docs/latest/components/upload)

[![npm version](https://badgen.net/npm/v/@vaadin/upload)](https://www.npmjs.com/package/@vaadin/upload)

```html
<vaadin-upload accept=".pdf">
  <span slot="drop-label">Drop your favourite Novels here (PDF files only)</span>
</vaadin-upload>
```

[<img src="https://raw.githubusercontent.com/vaadin/web-components/main/packages/upload/screenshot.png" width="656" alt="Screenshot of vaadin-upload">](https://vaadin.com/docs/latest/components/upload)

## Installation

Install the component:

```sh
npm i @vaadin/upload
```

Once installed, import the component in your application:

```js
import '@vaadin/upload';
```

## Performance Considerations

When uploading large numbers of files, the component automatically throttles concurrent uploads to prevent browser performance degradation. By default, a maximum of 3 files are uploaded simultaneously, with additional files queued automatically.

You can customize this limit using the `max-concurrent-uploads` attribute:

```html
<!-- Limit to 5 concurrent uploads -->
<vaadin-upload max-concurrent-uploads="5"></vaadin-upload>
```

```js
// Or set it programmatically
upload.maxConcurrentUploads = 5;
```

This helps prevent:
- Browser XHR limitations (failures when uploading 2000+ files simultaneously)
- Performance degradation with hundreds of concurrent uploads
- Network congestion on slower connections

The default value of 3 balances upload performance with network resource conservation.

## Contributing

Read the [contributing guide](https://vaadin.com/docs/latest/contributing) to learn about our development process, how to propose bugfixes and improvements, and how to test your changes to Vaadin components.

## License

Apache License 2.0

Vaadin collects usage statistics at development time to improve this product.
For details and to opt-out, see https://github.com/vaadin/vaadin-usage-statistics.

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