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.

Cannot specify File Input multiple attribute

See original GitHub issue

I tried all different ways but could not specify the following input for selecting multiple files. Single file selection works fine. How to specify the multiple property?

<input type="file" multiple />

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
levithomasoncommented, Feb 26, 2017

Given there are a small finite number of these props and they change very infrequently, I think it makes sense to whitelist them.

A workaround is to use the input prop to define the HTML inputs props:

http://react.semantic-ui.com/elements/input

input		{custom}	       Shorthand for creating the HTML Input.
<Input input={{ multiple: true }} />

// or

<Input input={<input multiple />} />

You can pass a type, props object, or an element there ^ 👍

0reactions
levithomasoncommented, Mar 13, 2017

Released in semantic-ui-react@0.67.1.

Read more comments on GitHub >

github_iconTop Results From Across the Web

multiple file input html not working - Stack Overflow
When using the HTML file element with the attribute multiple , the user must select all the files they want to upload at...
Read more >
HTML input multiple Attribute - W3Schools
The multiple attribute is a boolean attribute. When present, it specifies that the user is allowed to enter more than one value in...
Read more >
1355389 - Unable to select multiple files for HTML Input element
Open any webpage containing a HTML input element with type set to file and the multiple attribute set: https://jsfiddle.net/8e5ueap4/ 2.
Read more >
How to Select Multiple Files using HTML Input Tag
But if you are using HTML 4 or lower versions of HTML than, either you need to use multiple input tags or you...
Read more >
How to allow multiple file uploads in HTML forms.
The below syntax work same as the above-mentioned syntax. We assign 'multiple' attribute with the value of multiple for selecting multiple files ......
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