W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2012

Re: [File API] Draft for Review

From: Arun Ranganathan <aranganathan@mozilla.com>
Date: Fri, 27 Jan 2012 15:58:52 -0800 (PST)
To: Charles Pritchard <chuck@jumis.com>
Cc: "Web Applications Working Group WG (public-webapps@w3.org)" <public-webapps@w3.org>
Message-ID: <1dd44e9a-28fc-4b35-97a5-ce06a9a16525@zimbra1.shared.sjc1.mozilla.com>
> On 1/26/12 1:21 PM, Arun Ranganathan wrote:
 
> Yes, this is nicer. There's no way to create a new File object: I
> can't
> set name and lastModifiedDate.

These can't be done, but there is FileSaver/FileWriter).


> 
> There's an error in the blob constructor code. It uses object
> notation
> for the first argument instead of array notation.
> var c = new Blob({b, arraybuffer});
> Should be
> var c = new Blob([b, arraybuffer]);


Fixed (and that was silly of me -- I'm sorry :( ).


> 
> I don't understand the following example:
> // Simply create a new Blob object
> var x = new Blob(12);


It was overkill.  I've removed it.


> 
> > Please review the editor's draft at:
> > http://dev.w3.org/2006/webapi/FileAPI/


> I want to see the FileSaver (and a new, FileSaverStream) interface
> moved
> into the File API.


You mean, you find difficulty in the way they're set up now?  By "moved" you mean you want them part of the same specification?  Why?

-- A*
Received on Friday, 27 January 2012 23:59:20 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:50 GMT