Skip to content

Conversation

@gazpachoking
Copy link
Contributor

Proposal

data-bind should create a single signal for 'file' type inputs with a list of objects describing the files.

This would better match how the data-bind plugin works for all other input types. Every other input type only creates one signal, the exact one the user has specified to bind to. Currently file inputs result in two extra signals that the user has not explicitly specified.

This would also better match the underlying FileList api that the input element provides (Which is a list of File objects.) I have named the mime field type to match the File interface

PR with implementation is here, but no need to use it, just wanted to put this proposal up formally somewhere.

Co-authored-by: Johnathan Stevers <[email protected]>
@gazpachoking
Copy link
Contributor Author

This also opens up the possibility to include other fields from File e.g. size

@bencroker bencroker requested review from jmstevers and removed request for delaneyj August 22, 2025 11:11
@bencroker
Copy link
Collaborator

Thanks for the PR! We’ll look into getting this added for the next release.

@bencroker
Copy link
Collaborator

bencroker commented Aug 29, 2025

We added an implementation based on yours for the next release, thanks again!

screenshot-9AA69h9x@2x

@bencroker bencroker closed this Aug 29, 2025
@bencroker
Copy link
Collaborator

Released in v1.0.0-RC.6, thanks @gazpachoking!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants