[Bug 20887] New: Add a File constructor

https://www.w3.org/Bugs/Public/show_bug.cgi?id=20887

            Bug ID: 20887
           Summary: Add a File constructor
    Classification: Unclassified
           Product: WebAppsWG
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: File API
          Assignee: arun@mozilla.com
          Reporter: arun@mozilla.com
        QA Contact: public-webapps-bugzilla@w3.org
                CC: public-webapps@w3.org

There'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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Received on Wednesday, 6 February 2013 17:35:12 UTC