W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2013

Re: [whatwg] Forms: <input type=file> and directory tree picking

From: Jonas Sicking <jonas@sicking.cc>
Date: Wed, 2 Oct 2013 13:35:55 -0700
Message-ID: <CA+c2ei_rtS6RnJxr0Y7TMUrRibQcfGP-2omhCCQ-k_LvZsrfzw@mail.gmail.com>
To: Glenn Maynard <glenn@zewt.org>
Cc: WHAT Working Group <whatwg@lists.whatwg.org>, Jonathan Watt <jwatt@jwatt.org>, Ian Hickson <ian@hixie.ch>
On Wed, Oct 2, 2013 at 11:52 AM, Glenn Maynard <glenn@zewt.org> wrote:
> On Wed, Oct 2, 2013 at 1:02 PM, Jonas Sicking <jonas@sicking.cc> wrote:
>> > That's not the only alternative. For example, a third alternative is
>> > that
>> > the user's selection (e.g. a directory) is returned quickly, not
>> > pre-expanded, and then any uploading happens in the background with the
>> > author script doing the walk and uploading the files.
>> It's unclear to me what you are proposing here. Can you elaborate?
> The same thing I did, I think: an API to navigate the directory tree as
> needed, and to never greedily recursing the directory tree.

Unfortunately that's forbidden by current specs. Or rather, the only
implementation strategy that I can see for doing that while
implementing the current spec would require synchronously traversing
the full directory tree whenever element.files is accessed. At least
to me that would have performance issues that are unacceptable to

Though of course you or anyone else is free to propose changes to the
spec to improve that situation.

/ Jonas
Received on Wednesday, 2 October 2013 20:36:53 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:11 UTC