[whatwg] Directory upload via <input type="file" directory>

On Thu, Apr 22, 2010 at 3:37 PM, John Gregg <johnnyg at google.com> wrote:
> The use case is not about choosing a directory for some browser
> functionality, it is really about choosing a directory that you want
> to upload to a web page, such as a collection of photo albums.
>
> ?-John
>
> From Ian Fette's original email
> (http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2009-December/024455.html):
>
> USE CASE:
> Many sites allow you to upload multiple files, often images. HTML5 allows
> this via <input type="file" multiple>. This works well when your files are
> all in one folder, but it may often be the case that files are spread across
> sub-folders, and in this case you have to do multiple transactions (or
> multiple <input type=file multiple> tags, which is just awkward) to upload
> your files.

You can do this without any changes to the spec. The fact that chrome
only allows files from a single folder to be selected is not a
limitation imposed by the spec.

In fact, we've talked at mozilla about improving the UI around <input
type=file>, and better handling of multiple selected files is high up
on that list.

/ Jonas

Received on Saturday, 24 April 2010 09:49:51 UTC