What the person is doing
The product needs the original file for evidence, identity, compliance, media review, document processing, or support investigation.
Application · lesson 22 of 34 · Input And Data Entry
Underlying principle: An input pattern carries a question, an expected answer, and a consequence. Visible labels, suitable controls, tolerant entry, and specific recovery keep that agreement clear.
Provide a labelled file upload control that states requirements up front, uses a reliable file chooser, displays selected file details, validates type and size, shows progress and outcome, supports removal and retry, and preserves the surrounding task state.
An input pattern carries a question, an expected answer, and a consequence. Visible labels, suitable controls, tolerant entry, and specific recovery keep that agreement clear.
The product needs the original file for evidence, identity, compliance, media review, document processing, or support investigation.
Provide a labelled file upload control that states requirements up front, uses a reliable file chooser, displays selected file details, validates type and size, shows progress and outcome, supports removal and retry, and preserves the surrounding task state.
Empty labelled state with requirements hint and choose-file action.
Why does the service need the original file rather than a typed value?
Activating the choose-file button opens the platform file picker and returns focus to the invoking control or selected file summary afterward.
The product needs the original file for evidence, identity, compliance, media review, document processing, or support investigation.
Open the working example, try its controls, and compare the behavior against the decision guidance.
The product needs the original file for evidence, identity, compliance, media review, document processing, or support investigation.
Provide a labelled file upload control that states requirements up front, uses a reliable file chooser, displays selected file details, validates type and size, shows progress and outcome, supports removal and retry, and preserves the surrounding task state.
Empty labelled state with requirements hint and choose-file action.
A failed upload clears other form answers or returns users to the start of the journey.
Keep requirements in persistent hint text and associate them with the file input or upload button.
Government Digital Service - checked
GOV.UK supports labelled file upload, hints, errors, critical-use guidance, multiple files, improved upload behavior, and count-limit messaging.
IBM - checked
Carbon supports selected filename display, loading, success, uploaded, invalid states, removal, focus return, keyboard activation, and drop-zone boundaries.
Mozilla - checked
MDN supports native file input behavior, FileList access, accept type specifiers, multiple selection, capture hints, and validation caveats.
Department for Work and Pensions - checked
DWP research supports expectation setting, upload understandability, user control, timely feedback, mobile edge cases, and upload-versus-submit clarity.
Source trail checked: