feat(file-input): introduce multiple file uploads - #8032
Draft
tomwyatt wants to merge 1 commit into
Draft
Conversation
tomwyatt
force-pushed
the
file-input-multi-upload
branch
4 times, most recently
from
June 19, 2026 08:00
32bb486 to
b4acb0e
Compare
tomwyatt
force-pushed
the
file-input-multi-upload
branch
from
June 19, 2026 08:03
b4acb0e to
a2eba70
Compare
Contributor
|
All looks good from an accessibility perspective ✅ |
Contributor
|
@ljemmo @harpalsingh would one of you be able to give a steer on how long lists of files should be displayed? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed behaviour
This PR enhances the existing
FileInputcomponent to support multiple file uploads. Multiple file upload functionality can be activated via the optionalmultipleboolean prop, which is defaulted tofalse.When
multipleis enabled, each uploaded file is represented by its ownFileUploadStatusPropsobject, allowing consumers to independently track progress, success, error, and removal states for each file.Current behaviour
Prior to this PR, the
FileInputcomponent only supported single file upload. Once a file had been successfully uploaded, the file input section would be replaced with a status section which would display the file name, status and a way to remove the file. Removing the file would display the file input section again in place.This functionality still exists for the
FileInputcomponent, but the new propmultipleallows more than one file to be uploaded. A list of file status components for each uploaded file appears below the file input section, which remains visible for further file uploads if necessary.Checklist
d.tsfile added or updated if requiredQA
Additional context
Testing instructions