File upload
Attaching a file means leaving the page for the file chooser, and the limits often show up only after an upload fails.
The answer
Always offer a button that opens the file chooser, and state accepted types and sizes before people choose. As strong as the weakest rule behind it: moderate.
-
Never make dragging the only way. Always offer a button that opens the file chooser.
WCAG 2.2 level AA (2.5.7) requires a way to do anything that uses dragging without dragging. Its guidance does not name file upload, but the wording covers all dragging. Reopened and checked. Every design system read pairs the two.
- Applies when
- Drag and drop is offered.
- Based on
- Standard or law
- Principle
- Work for everyone
- Common mistake
- A drop area with no button (rule 2).
- StandardStandard: Understanding Success Criterion 2.5.7 Dragging Movements (WCAG 2.2)W3C Web Accessibility Initiative, 2026
- GuidanceGuidance: File upload component (GOV.UK Design System)GOV.UK Design System
- Guidance: File input component (U.S. Web Design System)USWDS, 2026
- Guidance: File uploader usage (IBM Carbon Design System)IBM Carbon
- Guidance: Drop zone (Shopify Polaris, from GitHub source docs)Shopify Polaris
-
Before people choose, state the file types, size limit and number of files allowed.
Five design systems agree, two of them from one family. No study. Rated 3.
- Applies when
- Always.
- Based on
- Convention
- Principle
- Prevent errors
- Common mistake
- Limits revealed only by an error after uploading (rule 4).
- GuidanceGuidance: File upload component (GOV.UK Design System)GOV.UK Design System
- Guidance: File upload component (NHS digital service manual)NHS England service manual, 2026
- Guidance: File input component (U.S. Web Design System)USWDS, 2026
- Guidance: File uploader usage (IBM Carbon Design System)IBM Carbon
- Guidance: Drop zone (Shopify Polaris, from GitHub source docs)Shopify Polaris
The other rules
-
Make choosing, uploading and removing files work from the keyboard.
WCAG 2.2 level A. Reopened and checked in the pilot.
- Applies when
- Always.
- Based on
- Standard or law
- Principle
- Work for everyone
- StandardStandard: Understanding SC 2.1.1 Keyboard (Level A)W3C WAI
-
If upload progress or results appear without moving focus, make sure screen readers announce them.
WCAG 2.2 level AA. Reopened and checked in the pilot.
- Applies when
- A progress or result message is shown.
- Based on
- Standard or law
- Principle
- Work for everyone
- StandardStandard: Understanding SC 4.1.3 Status Messages (Level AA)W3C WAI
-
When a file is rejected, say which file and why.
Design-system agreement; also follows WCAG 3.3.1. Rated 3.
- Applies when
- A file is rejected.
- Based on
- Convention
- Principle
- Help people recover from errors
- GuidanceGuidance: File upload component (GOV.UK Design System)GOV.UK Design System
- Guidance: File upload component (NHS digital service manual)NHS England service manual, 2026
- Guidance: File uploader usage (IBM Carbon Design System)IBM Carbon
- Guidance: Drop zone (Shopify Polaris, from GitHub source docs)Shopify Polaris
-
Show each file’s name and upload progress, with a way to remove it.
Only one design system covers it; one eight-person study touches upload feedback. Rated 2.
- Applies when
- Always.
- Based on
- Convention
- Principle
- Keep people informed
- User researchUser research: Usability Study of Basic File Management on a Shared Storage System (Lifetime Library web interface)Si Eun Kim, 2013
- GuidanceGuidance: File uploader usage (IBM Carbon Design System)IBM Carbon
-
Allow several files in one control only when people usually send several.
USWDS prefers one file per control; others support several. No evidence. Rated 1.
- Applies when
- More than one file is needed.
- Based on
- Convention
- Principle
- Leave out what is not needed
- GuidanceGuidance: File input component (U.S. Web Design System)USWDS, 2026
- Guidance: File uploader usage (IBM Carbon Design System)IBM Carbon
- Guidance: File upload component (GOV.UK Design System)GOV.UK Design System
Accessibility
Open questions
- OpenNo systematic review or published experiment was found. The two studies read are small and one is not about uploading.
- OpenOne practitioner argues against filtering the file chooser by type, without testing.
- OpenWhether people notice drop areas at all: one government team lists it as an untested hypothesis.
Sources
- User researchUser research: Usability Study of Basic File Management on a Shared Storage System (Lifetime Library web interface)Si Eun Kim, 2013
- StandardsStandard: Understanding SC 2.1.1 Keyboard (Level A)W3C WAI
- Standard: Understanding Success Criterion 2.5.7 Dragging Movements (WCAG 2.2)W3C Web Accessibility Initiative, 2026
- Standard: Understanding SC 4.1.3 Status Messages (Level AA)W3C WAI
- GuidanceGuidance: File upload component (GOV.UK Design System)GOV.UK Design System
- Guidance: File input component (U.S. Web Design System)USWDS, 2026
- Guidance: File uploader usage (IBM Carbon Design System)IBM Carbon
- Guidance: Drop zone (Shopify Polaris, from GitHub source docs)Shopify Polaris
- Guidance: File upload component (NHS digital service manual)NHS England service manual, 2026
Related
- Progress indicatorsFor work over about ten seconds, show how much is done, and never move the bar backwards.Answer: weak.
- Error message contentSay which field is wrong and how to fix it, right next to the field.Answer: strong.
- Keyboard operationMake everything work from the keyboard, in a sensible order, with the keys people expect.Answer: moderate.