` elements inside.
Some HTML attributes applied to the input might not work or work differently.
These attributes must stay in the original input since they’re used by the button:
- `id` and its value are added to the button and renamed on the input
- `disabled` is copied and synchronised with any changes that happen on the input
- `aria-describedby` is copied
These attributes must stay in the original input since they only work in the input (and not the button):
- `name`
- `accept`
- `capture`
- `accesskey`
- `multiple` , which also changes the behaviour of the button as text is added when multiple files are selected
To add any other attributes to the improved version, you’ll have to add them either to the parent `` or through JavaScript to the button.
Screen readers will not read out the `required` attribute in the improved version. Although we [recommend not to use that attribute](/patterns/validation/#turn-off-html5-validation).
### Changes in the improved component
To make it easier for users to drag and drop files, we’ve made the drop zone:
- bigger
- visible at all times
- more visually responsive to user interactions
We’ve also changed the ‘Choose file’ button to be more consistent with the secondary button in the [Button component](/components/button).
Service teams can change the text on the button and in the ‘No file chosen’ message. We decided to make this text changeable for translation purposes and to let teams be specific about the file to upload. However, teams should aim to keep the text as short as possible for accessibility purposes. For example, screen reader users might find it difficult to use the component if the text is too long.
All the text in the component can now be translated to match the language of the page content when JavaScript is running.
#### Improvements for assistive technology users
Users of Dragon, a speech recognition tool, [cannot activate their browser’s native file inputs](https://github.com/alphagov/govuk-frontend/issues/3686) by using commands for interacting with [web page controls](https://www.nuance.com/products/help/dragon/dragon-for-pc/enx/professionalgroup/main/Content/Web/working_with_chrome.htm?Highlight=click%20button). They have to rely on [mouse commands](https://www.nuance.com/products/help/dragon/dragon-for-pc/enx/professionalgroup/main/Content/CommandandControl/using_your_mouse.htm) or [keyboard commands](https://www.nuance.com/products/help/dragon/dragon-for-pc/enx/professionalgroup/main/Content/CommandandControl/using_your_keyboard.htm), which take multiple steps to activate the component.
With the improved File upload component, users can say commands for interacting with web page controls to choose files.
However, due to [browser security features](https://developer.mozilla.org/en-US/docs/Web/Security/User_activation), this may not work right away or on subsequent interactions on the same page. If users cannot interact with the component, they’ll first need to perform another action, such as a mouse click.
## Research on this component
### Colour and ‘interaction state’ updates from the GOV.UK brand refresh
In February 2026, we updated the improved File upload component.
As part of colour changes to the GOV.UK brand, we improved the various ‘states’ that show as the user interacts with the component. For example, we’ve made it easier for users to see when they’ve added a file.
We’ve also updated the colours to make user interaction more consistent and less distracting than before.
### Known issues and gaps
The earlier version of the File upload component does not show a visual target area when dragging and dropping a file. The component inherits and uses the browser’s default behaviour. More detail on the findings can be found in the [GitHub issue: ‘Upload file component has no visual target area when dragging and dropping a file’](https://github.com/alphagov/govuk-frontend/issues/3685).
We revisited this issue in March 2025 and have published an improved File upload component to improve accessibility. Although we’re confident the new component is an improvement on the browser’s default behaviour, teams can continue to use the existing component until the next major release, when the new version will be enabled by default.
## Help improve this component
To help make sure that this page is useful, relevant and up to date, you can:
- take part in the [‘File upload’ discussion on GitHub](https://github.com/alphagov/govuk-design-system-backlog/issues/49) and share your research
- [propose a change on GitHub](https://github.com/alphagov/govuk-design-system/edit/main/src/components/file-upload/index.md) – read more about [how to propose changes in GitHub](/community/propose-a-content-change-using-github/)
## Need help?
If you’ve got a question about the GOV.UK Design System, [contact the team](/contact/).