File Upload

Native file selection with optional application-owned, cancellable transfers. These examples keep content in this browser; no file is uploaded or stored remotely.

Diligence selection and native forms

Validate with no selection, then repeat: the error focuses the visible chooser and its caption stays readable. Tab follows the usual controls; choosing a value and resetting preserve the documented form behavior.

Choose or drop PDF, text or image files. Up to three files are allowed, each at most 1 MiB. Invalid selections stay visible with a reason. Inspect submits actual File metadata from native FormData; reset clears the selection.

No form submission yet.

Manual transfer queue, progress and cancellation

Choose files, then upload all or one file. Two attempts run concurrently. Cancel stops progress; retry uses a fresh attempt. These transfers simulate progress locally and return a local result.

No completed transfers.

Automatic selection and an application error

Accepted user selections start automatically. A file whose name begins with retry- fails its first simulated attempt, then succeeds on Retry. Owner assignments do not start transfers.

Single selection, picker only, readonly and disabled

Single selection replaces the previous file. Readonly retains its file value while preventing changes; disabled omits native submission. All file actions have keyboard/touch alternatives to dragging.

External form and author validation

This control belongs to a form by ID. Application custom validity can require a business check independently of selection or transport completion.

Application hold is active.

API and transfer events

files uses actual File references. tasks exposes frozen snapshots with stable IDs. Native input/change events describe selection; progress, completion, cancellation and errors have separate typed events. See the API documentation.