[whatwg] Directory upload via <input type="file" directory>
jonas at sicking.cc
Sat Apr 24 09:49:51 PDT 2010
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.
> From Ian Fette's original email
> 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.
More information about the whatwg