<?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>20887</bug_id>
          
          <creation_ts>2013-02-06 17:35:10 +0000</creation_ts>
          <short_desc>Add a File constructor</short_desc>
          <delta_ts>2013-08-15 14:30:05 +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>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></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="Arun">arun</assigned_to>
          <cc>public-webapps</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>82634</commentid>
    <comment_count>0</comment_count>
    <who name="Arun">arun</who>
    <bug_when>2013-02-06 17:35:10 +0000</bug_when>
    <thetext>There&apos;s been some discussion on the public-webapps listserv to introduce a File constructor, alongside the existing Blob constructor:

1. http://lists.w3.org/Archives/Public/public-webapps/2012OctDec/0675.html 

2. http://lists.w3.org/Archives/Public/public-webapps/2012AprJun/0671.html

3. http://lists.w3.org/Archives/Public/public-webapps/2011AprJun/1342.html

Use cases covered in these discussions are:

1. Better unit tests
2. Binding Blob to name.  Blobs already have a type, along with a content length.  Adding the ability to name a Blob works with server applications better, especially along with FormData

Of these, 1. above is either a weak or poorly understood use case.  2. Might be workable, but within the Blob constructor.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92067</commentid>
    <comment_count>1</comment_count>
    <who name="Arun">arun</who>
    <bug_when>2013-08-14 22:43:04 +0000</bug_when>
    <thetext>Done -- see http://dev.w3.org/2006/webapi/FileAPI/#file</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>