-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[New Primitive] FileUpload #1327
Copy link
Copy link
Closed
Labels
Difficulty: MediumThis issue is quite difficultThis issue is quite difficultType: New PrimitiveRequest for a new primitiveRequest for a new primitive
Description
Feature request
Overview
The native <input type="file"> is not customisable. To get around this, I often see people doing:
<label>
<button>
<input type="file" style="hide this element visually">
</label>
However, this approach doesn't render the filename, which is bad for a11y. Rendering the filename requires JS
Who does this impact? Who is this for?
Anyone who wants custom UI and uses forms, which is quite a lot of people.
Additional context
We could also provide a part to render the filesize (which I think is available through the browser API).
Examples
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Difficulty: MediumThis issue is quite difficultThis issue is quite difficultType: New PrimitiveRequest for a new primitiveRequest for a new primitive