question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can not bind to 'files' attribute of input element

See original GitHub issue

I recently tried:

<input type="file" multiple bind:files="files">

And received the compile time error:

[!] (svelte plugin) ValidationError: 'files' is not a valid binding

Am currently working on a PR.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Rich-Harriscommented, Jul 24, 2018

No need, it Just Works!

screen shot 2018-07-24 at 1 54 23 pm

Read more comments on GitHub >

github_iconTop Results From Across the Web

<input type="file"> - HTML: HyperText Markup Language | MDN
A file input's value attribute contains a string that represents the path to the selected file(s). If no file is selected yet, the...
Read more >
Can't get value of input type="file"?
When I'm using: alert($("#uploadPicture").val());. It alerts an empty dialog. javascript · jquery · file · input.
Read more >
How To Set The Value Of A File Input
The content of a pseudo-element can be set to an attribute value using attr(); Safari populates the webkitEntries property, Chrome doesn't. To ...
Read more >
input type=file – file upload control - HTML5
The input element with a type attribute whose value is " file " represents a list of file items, each consisting of a...
Read more >
Binding syntax
Notice that the binding is to the disabled property of the button's DOM element, not the attribute. Data binding works with properties of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found