EN, Change language
Englishالعربية
OM-066

The label must be correctly associated with the file input.

The requirement (from the design system site)

The label must be correctly associated with the file input.

Why it matters to users

Without a linked label, a screen-reader user reaching a file upload hears only "Choose file". They cannot tell whether it wants their ID card or a salary certificate, and may upload the wrong document.

How to fix it

Link visible label text to every file input with label for or aria-labelledby, or use gup-file-upload with its label set. Then scan again.

How we measure it

Each input[type=file] or gup-file-upload has a label: label[for], a wrapping label, aria-labelledby/aria-label, or (gup-file-upload) its own text or label attribute. No upload field found: not measured, since upload fields sit in e-service forms behind sign-in or on other portals.

The rule on the design system site

Related rules

Labelled file upload · Oman OM-066 | xfix