multiple file input (upload)
See original GitHub issueIs there a way to get access to the raw file array i.e. let fileSelected = this.files[0]; from a file input
<input type="file" id="simplefile" />
Or even is there a way to get access to event.currentTarget for an onChange event?
I tried using .observe for the on change but I can only get the filename as a value.
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
HTML input multiple Attribute - W3Schools
Tip: For <input type="file"> : To select multiple files, hold down the CTRL or SHIFT key while selecting. Tip: For <input type="email"> :...
Read more >How to select multiple files with <input type="file">?
You can only select 1 file per <input type="file" /> . If you want to send multiple files you will have to use...
Read more >How to allow multiple file uploads in HTML forms.
If you want to allow a user to upload the file to your website, you need to use a file upload box, also...
Read more ><input type="file"> - HTML: HyperText Markup Language | MDN
<input> elements with type="file" let the user choose one or more files from their device storage. Once chosen, the files can be uploaded...
Read more >How to Select Multiple Files using HTML Input Tag
For selecting files, you must use either CTRL or SHIFT and select the number of files to be uploaded.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This setup is working using
onChange
tested on chrome:component usage:
form.state.extra()
can be called everywhere to set or get additional custom form data. You can use this behavior in the meantime I implement a better solution.Implemented:
onDrop(e)
Event Handler.onDrop
Field Hook.file
Field Prop.Also some new example are added to the demo repo: