Bug 20887 - Add a File constructor
Add a File constructor
Status: RESOLVED FIXED
Product: WebAppsWG
Classification: Unclassified
Component: File API
unspecified
PC All
: P2 normal
: ---
Assigned To: Arun
public-webapps-bugzilla
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-02-06 17:35 UTC by Arun
Modified: 2013-08-15 14:30 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arun 2013-02-06 17:35:10 UTC
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.
Comment 1 Arun 2013-08-14 22:43:04 UTC
Done -- see http://dev.w3.org/2006/webapi/FileAPI/#file