-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Open
Labels
addition/proposalNew features or enhancementsNew features or enhancementsneeds implementer interestMoving the issue forward requires implementers to express interestMoving the issue forward requires implementers to express interesttopic: forms
Description
What problem are you trying to solve?
When users select multiple files using , the FileList returned is ordered alphabetically (or by other OS-default sorting), not by the sequence in which the user clicked the files. This makes it impossible for web applications to respect user intent when file order matters (e.g., photo albums, document assembly, media galleries).
So, the current behavior is:
- User selects files in order: zebra.jpg, apple.jpg, monkey.jpg
- FileList returns: [apple.jpg, monkey.jpg, zebra.jpg] (alphabetical or file dialog sort order)
- No metadata about selection sequence exists
What solutions exist today?
Workarounds (all inadequate):
- Single-file selection repeated multiple times (poor UX)
- Manual drag-drop reordering after selection (extra step)
No reliable solution exists
How would you solve it?
Any of the following options:
- A new HTML attribute:
- A new File property: [selectionIndex] (number indicating click order)
- A FileList property: fileList.selectionOrder (array of indices)
Anything else?
This affects any web application where file order is meaningful, forcing developers to implement complex workarounds or degrade user experience. It would be really helpful to have the files selected order returned in the order of selection.
Metadata
Metadata
Assignees
Labels
addition/proposalNew features or enhancementsNew features or enhancementsneeds implementer interestMoving the issue forward requires implementers to express interestMoving the issue forward requires implementers to express interesttopic: forms