Resonance Logo

File Upload

A file input with drag-and-drop support, file list management, progress reporting, and accessible validation feedback.

Demo

Use the upload control below to select one or more files. You can click the labeled button to open the native file browser, or drag files onto the drop zone. After selecting files, observe how the file list is updated and how status messages are communicated. Try removing a file from the list and notice how the change is announced. If validation errors occur — such as an unsupported file type — observe how the error is surfaced.

Drag and drop files here, or use the button below

Accepted formats: PDF, DOC, DOCX, TXT, PNG, JPG. Max 5 MB per file.

Uploaded Files (0)

    What to Observe

    Anatomy

    [Anatomy image placeholder — will be added when assets are available]

    1. Label — A visible <label> that names the file input and describes what files are expected.
    2. File input — The native <input type="file"> that triggers the browser's file picker; may be visually hidden but must remain accessible.
    3. Drop zone — A designated area that accepts dragged files; must also support keyboard activation as a fallback.
    4. File list — A list of selected files, each showing the filename and a remove action.
    5. Remove button — A per-file button that deletes the file from the selection; must have an accessible name identifying which file it removes.
    6. Status / error region — A live region that announces upload progress, success confirmations, and validation errors.

    Accessibility Behavior

    Common Mistakes

    Why This Matters

    File upload is a critical interaction in document management systems, profile setup, support workflows, and many other task flows. When the drag-and-drop zone is the only supported method, users who navigate by keyboard — including many users with motor disabilities — are completely blocked. Poor labeling of remove buttons turns a simple task into a guessing game for screen reader users. And silent upload progress leaves users uncertain whether anything is happening at all. These failures are particularly costly because file upload often sits at a high-stakes point in a workflow, such as submitting an application or attaching evidence to a case.

    Accessibility Validation

    This component is validated against internal accessibility criteria aligned with WCAG standards, using our internally developed system, Resonance Specs.

    To learn more, please contact us.

    Code

    Reference Implementation