W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2015

RE: Directory Upload Proposal

From: Travis Leithead <travis.leithead@microsoft.com>
Date: Tue, 28 Apr 2015 23:26:04 +0000
To: Jonas Sicking <jonas@sicking.cc>, Ali Alabbas <alia@microsoft.com>
CC: Web Applications Working Group WG <public-webapps@w3.org>
Message-ID: <BLUPR03MB389979566362EFA9DF552CBF8E80@BLUPR03MB389.namprd03.prod.outlook.com>
>> Second, rather than adding a .directory attribute, I think that we should simply add any selected directories to the .files list. My experience is that having a direct mapping between what the user does, and what we expose to the webpage, generally results in less developer confusion and/or annoyance.

I like this consolidation, but Ali concern (and one I share) is that legacy code using .files will not expect to encounter new Directory objects in the list and will likely break unless the Directory object maintains a backwards-compatible File-like appearance.

In the proposed model, the "directory" would be a virtual wrapper around any existing selected files, and could wholly replaces .files, while providing a nice extension point for additional behavior later.

I have a concern about revealing the user's directory names to the server, and suggested anonymizing the names, but it seems that having directory path names flow through to the server intact is an important scenario for file-syncing, which anonymizing might break.

-----Original Message-----
From: Jonas Sicking [mailto:jonas@sicking.cc] 
Sent: Monday, April 27, 2015 9:45 PM
To: Ali Alabbas
Cc: Web Applications Working Group WG
Subject: Re: Directory Upload Proposal

On Thu, Apr 23, 2015 at 12:28 PM, Ali Alabbas <alia@microsoft.com> wrote:
> Hello WebApps Group,

Hi Ali,

Yay! This is great to see a formal proposal for! Definitely something that mozilla is very interested in working on.

> If there is sufficient interest, I would like to work on this within the scope of the WebApps working group.

I personally will stay out of WG politics. But I think the proposal will receive more of the needed attention and review in this WG than in the HTML WG. But I'm not sure if W3C policies dictate that this is done in the HTML WG.

> [4] Proposal: 
> http://internetexplorer.github.io/directory-upload/proposal.html

So, some specific feedback on the proposal.

First off, I don't think you can use the name "dir" for the new attribute since that's already used for setting rtl/ltr direction.
Simply renaming the attribute to something else should fix this.

My understanding is that the current proposal is mainly so that if we in the future add something like Directory.enumerateDeep(), that that would automatically enable deep enumeration through all user options.
However that could always be solved by adding a
HTMLInputElement.enumerateFilesDeep() function.

/ Jonas
Received on Tuesday, 28 April 2015 23:26:34 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:27:31 UTC