Skip to content

Commit

Permalink
Add a note that bind:files is readonly (#6099)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkzlv committed May 29, 2021
1 parent b1d09a4 commit cc58f60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/content/docs/02-template-syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ Numeric input values are coerced; even though `input.value` is a string as far a

---

On `<input>` elements with `type="file"`, you can use `bind:files` to get the [`FileList` of selected files](https://developer.mozilla.org/en-US/docs/Web/API/FileList).
On `<input>` elements with `type="file"`, you can use `bind:files` to get the [`FileList` of selected files](https://developer.mozilla.org/en-US/docs/Web/API/FileList). It is readonly.

```sv
<label for="avatar">Upload a picture:</label>
Expand Down

0 comments on commit cc58f60

Please sign in to comment.