<?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>22682</bug_id>
          
          <creation_ts>2013-07-15 23:54:58 +0000</creation_ts>
          <short_desc>forms: Make &lt;input type=file&gt;.files writable</short_desc>
          <delta_ts>2017-07-24 03:22:21 +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>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <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>brunoaiss</cc>
    
    <cc>bzbarsky</cc>
    
    <cc>costan</cc>
    
    <cc>ian</cc>
    
    <cc>jonas</cc>
    
    <cc>mg05182-w3</cc>
    
    <cc>mike</cc>
    
    <cc>tkent</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>90771</commentid>
    <comment_count>0</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-07-15 23:54:58 +0000</bug_when>
    <thetext>Would be good to be able to do some or all of the following:

   input.files = [blob1, file1, blob2, blob3, file2];

   input.files.empty();
   input.files.append(blob1);
   input.files.append(file1);

Maybe by making HTMLInputElement.files return an object that inherits from FileList and extends it, and by having input.files have some sort of PutForwards- like magic that takes an array.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90772</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-07-15 23:57:05 +0000</bug_when>
    <thetext>Also desired (ack Nico Weber):

   input.files = dataTransfer.files;

...to copy the files from a drag-and-drop operation onto an &lt;input&gt; element for submission.

But I don&apos;t think we should actually set the FileList object itself; seems dangerous to have the object identity change... cc&apos;ing Boris who may have relevant opinions on API design around this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90773</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-07-15 23:57:59 +0000</bug_when>
    <thetext>Space here may be constrained by implementations:
   https://bugs.webkit.org/show_bug.cgi?id=87154
   https://bugzilla.mozilla.org/show_bug.cgi?id=757664</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90780</commentid>
    <comment_count>3</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2013-07-16 01:35:43 +0000</bug_when>
    <thetext>In the thread starting http://lists.w3.org/Archives/Public/public-script-coord/2013AprJun/0153.html most people felt that having setters and getters that return different types, and generally setters that do various magic things to what&apos;s being set, is pretty odd API...

I don&apos;t know that I have a strong opinion myself, yet.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94269</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-10-03 20:14:22 +0000</bug_when>
    <thetext>So WebKit now does comment 1, with the object changing identity. Nothing in comment 0 has been implemented so far by anyone as far as I can tell.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94274</commentid>
    <comment_count>5</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2013-10-03 21:10:01 +0000</bug_when>
    <thetext>When you say &quot;changing identity&quot; do you mean that after I do:

   input.files = dataTransfer.files;

then input.files === dataTransfer.files tests true?  Or that it test false?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94325</commentid>
    <comment_count>6</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-10-04 19:49:20 +0000</bug_when>
    <thetext>It tests true.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94690</commentid>
    <comment_count>7</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-10-14 19:52:27 +0000</bug_when>
    <thetext>Spec-wise, I&apos;m not sure how to proceed. I need two implementors intending on converging on the same thing or willing to implement the same proposal before I can update the spec. Moving back to &quot;Needs Impl Interest&quot; for now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128758</commentid>
    <comment_count>8</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2017-07-21 11:07:52 +0000</bug_when>
    <thetext>Please file a new issue at https://github.com/whatwg/html/issues/new if this is still desired.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128776</commentid>
    <comment_count>9</comment_count>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2017-07-24 03:22:21 +0000</bug_when>
    <thetext>(In reply to Anne from comment #8)
&gt; Please file a new issue at https://github.com/whatwg/html/issues/new if this
&gt; is still desired.

Filed: https://github.com/whatwg/html/issues/2861</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>