Upload
A managed file uploader with a drag-and-drop surface, file list with progress bars, status indicators, and an optional uploader function property.
Preview
Attributes
| Attribute | Type | Default | Description |
|---|---|---|---|
multiple | boolean | — | Allow multiple file selection |
accept | string | — | Accepted file types (passed to native input) |
auto | boolean | — | Automatically start upload on file selection |
max-size | string | — | Maximum file size in bytes |
disabled | boolean | — | Disables the drop zone and file input |
Installation
pura is copy-paste and dependency-free. Load the whole library, or just this component.
<link rel="stylesheet" href="/pura/tokens.css">
<script type="module" src="/pura/lib/upload.js"></script> import "./pura/lib/upload.js";