The multiple attribute is a boolean attribute.
When present, it specifies that the user is allowed to enter more than one value in the element.
Note: The multiple attribute works with the following input types: email, and file.
Tip: For : to select multiple files, hold down the CTRL or SHIFT key while selecting.
Tip: For : separate each email with a comma, like: mail@example.com, mail2@example.com, mail3@example.com in the email field.
Browser Support
The numbers in the table specify the first browser version that fully supports the attribute.
| Attribute | |||||
|---|---|---|---|---|---|
| multiple | 6.0 | 10.0 | 3.6 | 5.0 | 11.0 |
Differences Between HTML 4.01 and HTML5
The multiple attribute is new in HTML5.
Differences Between HTML and XHTML
In XHTML, attribute minimization is forb />.
Есть формочка отправляющая файлы на сервер, с отправкой и приемом одного файла проблем не возникает (конкретно отправляются изображения jpg,png), но как правильно залить в FormData несколько файлов, что бы сервер их принял как данные единого input?
Я пробовал отправить не files[0], а просто files (конец первой строки js) и получить файл по индексу $_FILES[‘logo’][‘tmp_name’][0] все тщетно, видимо formdata не воспринимает такой массив
В принципе PHP часть мне не так важна, мне бы с FormData() разобраться.
How to select multiple files with ?

9 Answers 9
In HTML5 you can add the multiple attribute to select more than 1 file.
You can only select 1 file per . If you want to send multiple files you will have to use multiple input tags or use Flash or Silverlight.
Browser support is quite good on desktop (just not supported by IE 9 and prior), less good on mobile, I guess because it’s harder to implement correctly depending on the platform and version.
The whole thing should look like:
Make sure you have the enctype=’multipart/form-data’ attribute in your

Copy and paste this into your html:
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Sign up or log in
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy