How to select multiple files with <input type="file">?

Mask picture Mask · Oct 20, 2009 · Viewed 170.1k times · Source

How to select multiple files with <input type="file">?

Answer

ZippyV picture ZippyV · Oct 20, 2009

New answer:

In HTML5 you can add the multiple attribute to select more than 1 file.

<input type="file" name="filefield" multiple="multiple">

Old answer:

You can only select 1 file per <input type="file" />. If you want to send multiple files you will have to use multiple input tags or use Flash or Silverlight.