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

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
> > (
> 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.


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.

Ojan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20100425/8c46b181/attachment-0001.htm>

Received on Sunday, 25 April 2010 08:42:49 UTC