<?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>16834</bug_id>
          
          <creation_ts>2012-04-24 10:26:54 +0000</creation_ts>
          <short_desc>FileList in input.files (multiple attribute)</short_desc>
          <delta_ts>2013-03-13 18:52:40 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>File API</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>17125</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>krossekrabbe</reporter>
          <assigned_to name="Arun">arun</assigned_to>
          <cc>mike</cc>
    
    <cc>plh</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>public-webapps</cc>
    
    <cc>robin</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>66962</commentid>
    <comment_count>0</comment_count>
    <who name="">krossekrabbe</who>
    <bug_when>2012-04-24 10:26:54 +0000</bug_when>
    <thetext>I hope I&apos;m submitting this feature request to the correct place, not quite sure.

--

Accessing the files attribute of an input element returns the files as FileList object, which is - AFAIK - part of the FileSystem API and therefore grants only read-only access to its contents.

Unfortunately there are several common use cases which would require the ability to programmatically _remove_ particular files from the FileList, which seems not to be possible currently.

For example:

a) Checking the file.size for some limit before uploading, if limit is exceeded exclude the particular file from uploading.

b) Giving the end-user an opportunity of reviewing his file selection and to exclude accidentally selected files.

Here&apos;s the discussion of a guy facing the same problem:
http://stackoverflow.com/questions/3144419/how-do-i-remove-a-file-from-the-filelist</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81658</commentid>
    <comment_count>1</comment_count>
    <who name="Robin Berjon">robin</who>
    <bug_when>2013-01-21 15:57:55 +0000</bug_when>
    <thetext>Mass move to &quot;HTML WG&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81771</commentid>
    <comment_count>2</comment_count>
    <who name="Robin Berjon">robin</who>
    <bug_when>2013-01-21 16:00:38 +0000</bug_when>
    <thetext>Mass move to &quot;HTML WG&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84230</commentid>
    <comment_count>3</comment_count>
    <who name="Robin Berjon">robin</who>
    <bug_when>2013-03-11 15:32:09 +0000</bug_when>
    <thetext>This is not something for the HTML specification to change, FileList is defined by the File API specification (http://dev.w3.org/2006/webapi/FileAPI/#dfn-filelist).

But don&apos;t worry — I&apos;m moving your bug there so that it can be processed by the right people, this is a good bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84255</commentid>
    <comment_count>4</comment_count>
    <who name="Arun">arun</who>
    <bug_when>2013-03-11 17:06:39 +0000</bug_when>
    <thetext>This bug is a likely dupe of Bug 17125.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84360</commentid>
    <comment_count>5</comment_count>
    <who name="Arun">arun</who>
    <bug_when>2013-03-13 18:52:40 +0000</bug_when>
    <thetext>Marking dupe.  Let&apos;s continue discussion in Bug 17125

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

    </bug>

</bugzilla>