# File upload

> Attaching a file means leaving the page for the file chooser, and the limits often show up only after an upload fails.

Area: Forms. Evidence behind the answer: Moderate. Last checked November 12, 2026.
Page: https://uxreference.com/forms/file-upload

## The answer

Always offer a button that opens the file chooser, and state accepted types and sizes before people choose.

- **Settled, WCAG AA.** Never make dragging the only way. Always offer a button that opens the file chooser. (https://uxreference.com/forms/file-upload#rule-2)
- **Moderate.** Before people choose, state the file types, size limit and number of files allowed. (https://uxreference.com/forms/file-upload#rule-4)

## The problem

Choosing a file leaves the page for a system dialog or a drag across windows, and limits are often discovered only after a failed upload.

## How to decide

None. The sources do not describe more than one correct practice that depends on context.

## Every rule

Each rule has a grade: Settled (required by WCAG AA or law, or replicated research), Strong, Moderate, Weak, or Unsettled (use the stated default until the evidence settles).

#### Rule 1. Settled, WCAG AA

Make choosing, uploading and removing files work from the keyboard.

- Applies when: Always.
- Based on: Standard or law
- Principle: Work for everyone

Why: WCAG 2.2 level A. Reopened and checked in the pilot.

Sources: [Understanding SC 2.1.1 Keyboard (Level A)](https://www.w3.org/WAI/WCAG22/Understanding/keyboard.html)

Link: https://uxreference.com/forms/file-upload#rule-1

#### Rule 2. Settled, WCAG AA

Never make dragging the only way to add a file. Always offer a control that opens the file chooser.

- Applies when: Drag and drop is offered.
- Based on: Standard or law
- Principle: Work for everyone

Why: 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.

Sources: [Understanding Success Criterion 2.5.7 Dragging Movements (WCAG 2.2)](https://www.w3.org/WAI/WCAG22/Understanding/dragging-movements.html); [File upload component (GOV.UK Design System)](https://design-system.service.gov.uk/components/file-upload/); [File input component (U.S. Web Design System)](https://designsystem.digital.gov/components/file-input/); [File uploader usage (IBM Carbon Design System)](https://carbondesignsystem.com/components/file-uploader/usage/); [Drop zone (Shopify Polaris, from GitHub source docs)](https://raw.githubusercontent.com/Shopify/polaris/main/polaris.shopify.com/content/components/selection-and-input/drop-zone.mdx)

Link: https://uxreference.com/forms/file-upload#rule-2

#### Rule 3. Settled, WCAG AA

When an upload's progress or result is shown without moving focus, expose it so assistive technology announces it.

- Applies when: A progress or result message is shown.
- Based on: Standard or law
- Principle: Work for everyone

Why: WCAG 2.2 level AA. Reopened and checked in the pilot.

Sources: [Understanding SC 4.1.3 Status Messages (Level AA)](https://www.w3.org/WAI/WCAG22/Understanding/status-messages.html)

Link: https://uxreference.com/forms/file-upload#rule-3

#### Rule 4. Moderate

State the accepted file types, size limit and number of files before the person chooses.

- Applies when: Always.
- Based on: Convention
- Principle: Prevent errors

Why: Five design systems agree, two of them from one family. No study. Rated 3.

Sources: [File upload component (GOV.UK Design System)](https://design-system.service.gov.uk/components/file-upload/); [File upload component (NHS digital service manual)](https://service-manual.nhs.uk/design-system/components/file-upload); [File input component (U.S. Web Design System)](https://designsystem.digital.gov/components/file-input/); [File uploader usage (IBM Carbon Design System)](https://carbondesignsystem.com/components/file-uploader/usage/); [Drop zone (Shopify Polaris, from GitHub source docs)](https://raw.githubusercontent.com/Shopify/polaris/main/polaris.shopify.com/content/components/selection-and-input/drop-zone.mdx)

Link: https://uxreference.com/forms/file-upload#rule-4

#### Rule 5. Moderate

When a file is rejected, say which file and why.

- Applies when: A file is rejected.
- Based on: Convention
- Principle: Help people recover from errors

Why: Design-system agreement; also follows WCAG 3.3.1. Rated 3.

Sources: [File upload component (GOV.UK Design System)](https://design-system.service.gov.uk/components/file-upload/); [File upload component (NHS digital service manual)](https://service-manual.nhs.uk/design-system/components/file-upload); [File uploader usage (IBM Carbon Design System)](https://carbondesignsystem.com/components/file-uploader/usage/); [Drop zone (Shopify Polaris, from GitHub source docs)](https://raw.githubusercontent.com/Shopify/polaris/main/polaris.shopify.com/content/components/selection-and-input/drop-zone.mdx)

Link: https://uxreference.com/forms/file-upload#rule-5

#### Rule 6. Weak

Show each chosen file by name, show its upload progress, and offer a way to remove it.

- Applies when: Always.
- Based on: Convention
- Principle: Keep people informed

Why: Only one design system covers it; one eight-person study touches upload feedback. Rated 2.

Sources: [File uploader usage (IBM Carbon Design System)](https://carbondesignsystem.com/components/file-uploader/usage/); [Usability Study of Basic File Management on a Shared Storage System (Lifetime Library web interface)](https://core.ac.uk/download/210608782.pdf)

Link: https://uxreference.com/forms/file-upload#rule-6

#### Rule 7. Unsettled

Whether to take several files in one control or one file per control is unsettled.

Until the evidence settles, use this default: Allow several files in one control only when people usually have several to send.

- Applies when: More than one file is needed.
- Based on: Convention
- Principle: Leave out what is not needed

Why: USWDS prefers one file per control; others support several. No evidence. Rated 1.

Sources: [File input component (U.S. Web Design System)](https://designsystem.digital.gov/components/file-input/); [File uploader usage (IBM Carbon Design System)](https://carbondesignsystem.com/components/file-uploader/usage/); [File upload component (GOV.UK Design System)](https://design-system.service.gov.uk/components/file-upload/)

Link: https://uxreference.com/forms/file-upload#rule-7

## Accessibility requirements

- WCAG 2.2, 2.1.1 Keyboard (A), 2.5.7 Dragging Movements (AA), 4.1.3 Status Messages (AA), 3.3.1 Error Identification (A). (https://www.w3.org/WAI/WCAG22/Understanding/keyboard.html)

## Common mistakes

- A drop area with no button ([rule 2](https://uxreference.com/forms/file-upload#rule-2)).
- Limits revealed only by an error after uploading ([rule 4](https://uxreference.com/forms/file-upload#rule-4)).

## Still open

- No systematic review or published experiment was found. The two studies read are small and one is not about uploading.
- One practitioner argues against filtering the file chooser by type, without testing.
- Whether people notice drop areas at all: one government team lists it as an untested hypothesis.

## Related problems

- [Progress indicators](https://uxreference.com/feedback/progress): For work over about ten seconds, show how much is done, and never move the bar backwards.
- [Error message content](https://uxreference.com/forms/error-messages): Say which field is wrong and how to fix it, right next to the field.
- [Keyboard operation](https://uxreference.com/accessibility/keyboard): Make everything work from the keyboard, in a sensible order, with the keys people expect.

## Sources

- [Understanding SC 2.1.1 Keyboard (Level A)](https://www.w3.org/WAI/WCAG22/Understanding/keyboard.html). W3C WAI, n.d., normative standard (Understanding document, informative).
- [Understanding Success Criterion 2.5.7 Dragging Movements (WCAG 2.2)](https://www.w3.org/WAI/WCAG22/Understanding/dragging-movements.html). W3C Web Accessibility Initiative, 2026, normative standard (understanding document).
- [File upload component (GOV.UK Design System)](https://design-system.service.gov.uk/components/file-upload/). GOV.UK Design System, Government Digital Service, n.d., component documentation.
- [File input component (U.S. Web Design System)](https://designsystem.digital.gov/components/file-input/). USWDS, GSA, 2026, component documentation with accessibility test summary.
- [File uploader usage (IBM Carbon Design System)](https://carbondesignsystem.com/components/file-uploader/usage/). IBM Carbon, n.d., component documentation.
- [Drop zone (Shopify Polaris, from GitHub source docs)](https://raw.githubusercontent.com/Shopify/polaris/main/polaris.shopify.com/content/components/selection-and-input/drop-zone.mdx). Shopify Polaris, n.d., component documentation.
- [Understanding SC 4.1.3 Status Messages (Level AA)](https://www.w3.org/WAI/WCAG22/Understanding/status-messages.html). W3C WAI (WCAG Working Group), n.d., normative standard (Understanding document is informative).
- [File upload component (NHS digital service manual)](https://service-manual.nhs.uk/design-system/components/file-upload). NHS England service manual, 2026, component documentation.
- [Usability Study of Basic File Management on a Shared Storage System (Lifetime Library web interface)](https://core.ac.uk/download/210608782.pdf). Si Eun Kim, UNC-Chapel Hill SILS (Master's paper; advisor Robert Capra), 2013, moderated lab usability test, nine file-management tasks incl. single and bulk upload, SUS.

---
From Solved Problems in UX by Athen Pellicci, an evidence-graded reference of web interface problems. CC BY 4.0. https://uxreference.com/
