Re: Directory Upload Proposal

On Thu, Apr 23, 2015 at 5:45 PM, Anne van Kesteren <annevk@annevk.nl> wrote:
> On Thu, Apr 23, 2015 at 12:28 PM, Ali Alabbas <alia@microsoft.com> wrote:
>> If there is sufficient interest, I would like to work on this within the scope of the WebApps working group.
>
> It seems somewhat better to just file a bug against the HTML Standard
> since this also affects the processing model of e.g. <input>.files.
> Which I think was the original proposal for how to address this...
> Just expose all the files in <input>.files and expose the relative
> paths, but I guess that might be a bit too synchronous...

Yeah. Recursively enumerating the selected directory (/directories)
can be a potentially very lengthy process. So something which the page
might want to display progress UI while it's happening. We looked at
various ways of doing this in [1] but ultimately all of them felt
clunky and not as flexible as allowing the page to enumerate the
directory tree itself. This way pages could even save time on
enumeration by displaying UI which allows the user to select which
sub-directories to traverse.

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=846931

/ Jonas

Received on Tuesday, 28 April 2015 04:53:51 UTC