<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>29154</bug_id>
          
          <creation_ts>2015-09-28 15:21:14 +0000</creation_ts>
          <short_desc>HTMLInputElement proposed getFilesAndDirectories() method</short_desc>
          <delta_ts>2016-07-06 20:15:20 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>HTML5 spec</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>whatwg-resolved</status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Arun">arun</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          <cc>adrianba</cc>
    
    <cc>arronei</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>zcorpan</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>123341</commentid>
    <comment_count>0</comment_count>
    <who name="Arun">arun</who>
    <bug_when>2015-09-28 15:21:14 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>123353</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2015-09-29 11:22:13 +0000</bug_when>
    <thetext>Can you please also file this at https://github.com/whatwg/html/issues ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>123379</commentid>
    <comment_count>2</comment_count>
    <who name="Arun">arun</who>
    <bug_when>2015-09-30 15:19:02 +0000</bug_when>
    <thetext>(In reply to Simon Pieters from comment #1)
&gt; Can you please also file this at https://github.com/whatwg/html/issues ?

Happy to do it: 
https://github.com/whatwg/html/issues/217</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>123380</commentid>
    <comment_count>3</comment_count>
    <who name="Arun">arun</who>
    <bug_when>2015-09-30 16:00:48 +0000</bug_when>
    <thetext>Note: just to be clear, there are other additions to HTMLInputElement that haven&apos;t been properly accounted for in this bug.

partial interface HTMLInputElement {
                attribute boolean directory;
    readonly    attribute boolean isFilesAndDirectoriesSupported;
    Promise&amp;lt;sequence&amp;lt;(File or Directory)&gt;&gt; getFilesAndDirectories();
    void                                   chooseDirectory();
};</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>123455</commentid>
    <comment_count>4</comment_count>
    <who name="Adrian Bateman [MSFT]">adrianba</who>
    <bug_when>2015-10-02 16:02:53 +0000</bug_when>
    <thetext>(In reply to Arun from comment #0)
&gt; In order to enable Directory Upload via the HTMLInputElement, Mozilla and
&gt; Microsoft propose a change: the addition of the getFilesAndDirectories()
&gt; method, initially proposed in the WICG.
[...]
&gt; These provide asynchronous ways of navigating user-selected files and
&gt; directories. This bug is to specify getFilesAndDirectories on the
&gt; HTMLInputElement.

I&apos;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 &quot;Intent to migrate&quot; template [1] have been reached, for example?

[1] https://wicg.github.io/admin/intent-to-migrate.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>123634</commentid>
    <comment_count>5</comment_count>
    <who name="Arun">arun</who>
    <bug_when>2015-10-09 15:23:23 +0000</bug_when>
    <thetext>(In reply to Adrian Bateman [MSFT] from comment #4)
&gt; (In reply to Arun from comment #0)
&gt; &gt; In order to enable Directory Upload via the HTMLInputElement, Mozilla and
&gt; &gt; Microsoft propose a change: the addition of the getFilesAndDirectories()
&gt; &gt; method, initially proposed in the WICG.
&gt; [...]
&gt; &gt; These provide asynchronous ways of navigating user-selected files and
&gt; &gt; directories. This bug is to specify getFilesAndDirectories on the
&gt; &gt; HTMLInputElement.
&gt; 
&gt; I&apos;m supportive of this proposal, of course, but the goal of the incubator
&gt; group is to make sure that proposals are feasible and have reasonably broad
&gt; support before being adopted by working groups.
&gt; 
&gt; Do you think the criteria such as those proposed in the &quot;Intent to migrate&quot;
&gt; template [1] have been reached, for example?
&gt; 
&gt; [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&apos;d like you to weigh in on that matter also.

Mozilla&apos;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 &quot;first guess&quot; metrics for usage according to the Data clause of the &quot;intent to migrate&quot; template. Also, I&apos;m happy to work on the &quot;intent to migrate&quot; portion of things, if that helps move things over.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126199</commentid>
    <comment_count>6</comment_count>
    <who name="Arron Eicholz">arronei</who>
    <bug_when>2016-04-27 16:06:41 +0000</bug_when>
    <thetext>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</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>