← Hub · Open the note

File upload (browse + drag-and-drop) — BEFORE/AFTER demo

Goal: let people choose a file with keyboard, screen readers, or drag-and-drop, with clear requirements and calm announcements.

BEFOREMouse-only dropzone (hard to discover, not focusable)

Problems: no real file input, no label, not reachable by Tab, and no polite confirmation for screen readers.

Drop a file here

(There is no “Browse…” option. Keyboard users can’t activate this.)

    Try: press Tab. You can’t reach the dropzone to discover how to upload.

    AFTERLabeled file input + drag-and-drop + clear rules

    Improvements: a real <input type="file">, instructions + requirements, inline errors, and a single polite status update per selection.

    Tip: don’t block paste or drop. Let the browser + password manager + assistive tech do their jobs.

    Quick checklist