[whatwg] Directory upload via <input type="file" directory>
ojan at chromium.org
Sun Apr 25 08:42:49 PDT 2010
On Sat, Apr 24, 2010 at 9:49 AM, Jonas Sicking <jonas at sicking.cc> wrote:
> 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
> > (
> > 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
> > all in one folder, but it may often be the case that files are spread
> > sub-folders, and in this case you have to do multiple transactions (or
> > multiple <input type=file multiple> tags, which is just awkward) to
> > 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.
What do you do when there are multiple files with the same name?
Also, I do believe the ability to upload a whole directory is important for
some good use-cases, e.g. upload a directory of photos to a photo site while
maintaing directory structure.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the whatwg