This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 29154 - HTMLInputElement proposed getFilesAndDirectories() method
Summary: HTMLInputElement proposed getFilesAndDirectories() method
Status: RESOLVED WONTFIX
Alias: None
Product: HTML WG
Classification: Unclassified
Component: HTML5 spec (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard: whatwg-resolved
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-28 15:21 UTC by Arun
Modified: 2016-07-06 20:15 UTC (History)
6 users (show)

See Also:


Attachments

Description Arun 2015-09-28 15:21:14 UTC
In order to enable Directory Upload via the HTMLInputElement, Mozilla and Microsoft propose a change: the addition of the getFilesAndDirectories() method, initially proposed in the WICG.

https://wicg.github.io/directory-upload/proposal.html#dom-htmlinputelement-getfilesanddirectories

This method is also defined in the FileSystem API, on the Directory object: 

http://w3c.github.io/filesystem-api/#widl-Directory-getFilesAndDirectories-Promise-FileOrDirectorySequence

These provide asynchronous ways of navigating user-selected files and directories. This bug is to specify getFilesAndDirectories on the HTMLInputElement.
Comment 1 Simon Pieters 2015-09-29 11:22:13 UTC
Can you please also file this at https://github.com/whatwg/html/issues ?
Comment 2 Arun 2015-09-30 15:19:02 UTC
(In reply to Simon Pieters from comment #1)
> Can you please also file this at https://github.com/whatwg/html/issues ?

Happy to do it: 
https://github.com/whatwg/html/issues/217
Comment 3 Arun 2015-09-30 16:00:48 UTC
Note: just to be clear, there are other additions to HTMLInputElement that haven't been properly accounted for in this bug.

partial interface HTMLInputElement {
                attribute boolean directory;
    readonly    attribute boolean isFilesAndDirectoriesSupported;
    Promise<sequence<(File or Directory)>> getFilesAndDirectories();
    void                                   chooseDirectory();
};
Comment 4 Adrian Bateman [MSFT] 2015-10-02 16:02:53 UTC
(In reply to Arun from comment #0)
> In order to enable Directory Upload via the HTMLInputElement, Mozilla and
> Microsoft propose a change: the addition of the getFilesAndDirectories()
> method, initially proposed in the WICG.
[...]
> These provide asynchronous ways of navigating user-selected files and
> directories. This bug is to specify getFilesAndDirectories on the
> HTMLInputElement.

I'm supportive of this proposal, of course, but the goal of the incubator group is to make sure that proposals are feasible and have reasonably broad support before being adopted by working groups.

Do you think the criteria such as those proposed in the "Intent to migrate" template [1] have been reached, for example?

[1] https://wicg.github.io/admin/intent-to-migrate.html
Comment 5 Arun 2015-10-09 15:23:23 UTC
(In reply to Adrian Bateman [MSFT] from comment #4)
> (In reply to Arun from comment #0)
> > In order to enable Directory Upload via the HTMLInputElement, Mozilla and
> > Microsoft propose a change: the addition of the getFilesAndDirectories()
> > method, initially proposed in the WICG.
> [...]
> > These provide asynchronous ways of navigating user-selected files and
> > directories. This bug is to specify getFilesAndDirectories on the
> > HTMLInputElement.
> 
> I'm supportive of this proposal, of course, but the goal of the incubator
> group is to make sure that proposals are feasible and have reasonably broad
> support before being adopted by working groups.
> 
> Do you think the criteria such as those proposed in the "Intent to migrate"
> template [1] have been reached, for example?
> 
> [1] https://wicg.github.io/admin/intent-to-migrate.html

Adrian:

My concern is that the discussions taking place at WICG currently are tapering off, and in general, appear to be favoring a migration towards the WG (WHATWG for the HTML bits, and WebApps for the File API bits). It seems to me that technical discussions might be more robust there, but I'd like you to weigh in on that matter also.

Mozilla's plans include an implementation of the feature. 

Would formally filling out the intent to migrate doc help move things over? Can I encourage you to contribute some of your metrics, at least based on the Chrome-emulation that you announced you would do on the listserv? That appears give us "first guess" metrics for usage according to the Data clause of the "intent to migrate" template. Also, I'm happy to work on the "intent to migrate" portion of things, if that helps move things over.
Comment 6 Arron Eicholz 2016-04-27 16:06:41 UTC
HTML5.1 Bugzilla Bug Triage: Incubation needed

This bug constitutes a request for a new feature of HTML. The current guidelines [1], rather than track such requests as bugs or issues, please create a proposal outlining the desired behavior, or at least a sketch of what is wanted (much of which is probably contained in this bug), and start the discussion/proposal in the WICG [2]. As your idea gains interest and momentum, it may be brought back into HTML through the Intent to Migrate process [3].
[1] https://github.com/w3c/html#contributing-to-this-repository
[2] https://www.w3.org/community/wicg/
[3] https://wicg.github.io/admin/intent-to-migrate.html