<?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>22680</bug_id>
          
          <creation_ts>2013-07-15 23:47:56 +0000</creation_ts>
          <short_desc>forms: Make FormData expose its contents</short_desc>
          <delta_ts>2014-05-16 11:16:18 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>23211</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>Needs Impl Interest</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ian &apos;Hixie&apos; Hickson">ian</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>annevk</cc>
    
    <cc>arun</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>90768</commentid>
    <comment_count>0</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-07-15 23:47:56 +0000</bug_when>
    <thetext>Right now there&apos;s no easy way to walk a &lt;form&gt;&apos;s form data set. Extending FormData to actually expose the form data seems like the obvious choice.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90769</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-07-15 23:49:29 +0000</bug_when>
    <thetext>See also: http://wiki.whatwg.org/wiki/FormData</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90801</commentid>
    <comment_count>2</comment_count>
    <who name="Arun">arun</who>
    <bug_when>2013-07-16 16:32:15 +0000</bug_when>
    <thetext>Bug 20887 proposes to add a File constructor.  If we did, it seems like you could walk a &lt;form&gt;&apos;s form data set, extract file data, and use it to create a File object.  Should there be a more intuitive connection between File and FormData?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90825</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-07-16 23:13:39 +0000</bug_when>
    <thetext>Arun, can you elaborate? I&apos;m not sure I follow.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92096</commentid>
    <comment_count>4</comment_count>
    <who name="Arun">arun</who>
    <bug_when>2013-08-15 16:43:24 +0000</bug_when>
    <thetext>(Sorry for the tardy response: I was on vacation).

I&apos;ve mulled this over, and think a File constructor is sufficient; Bug 20887 now has some spec. text in place, and should hopefully come as no surprise:

var f = new File(myBlob, &quot;fooBarFile&quot;);

There shouldn&apos;t be too many other requirements that FormData has on File, so Comment 2 was out of turn I think.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92679</commentid>
    <comment_count>5</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2013-08-28 08:50:16 +0000</bug_when>
    <thetext>See also bug 20038 by the way.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93212</commentid>
    <comment_count>6</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2013-09-10 16:58:16 +0000</bug_when>
    <thetext>The other bug is fixed now. But since JavaScript has no iterators yet there&apos;s no way to iterate FormData thus far... Not sure if we want to keep this bug open for that or not. Once iterators are there we&apos;ll update a whole bunch of objects I think.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106109</commentid>
    <comment_count>7</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-05-15 22:43:38 +0000</bug_when>
    <thetext>Anne, should this bug be yours at this point, since you own that API?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106152</commentid>
    <comment_count>8</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-05-16 11:16:18 +0000</bug_when>
    <thetext>It already exposes contents, but iterating over the contents is awaiting some new IDL sugar. Let&apos;s just dupe this against that remaining bit.

*** This bug has been marked as a duplicate of bug 23211 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>