W3C home > Mailing lists > Public > public-device-apis@w3.org > March 2010

Re: New draft of FileWriter API posted

From: Kinuko Yasuda <kinuko@chromium.org>
Date: Tue, 23 Mar 2010 20:20:32 -0700
Message-ID: <f6ddb9231003232020j39252871n1d4cb4c2c52a5986@mail.gmail.com>
To: Eric Uhrhane <ericu@google.com>
Cc: Darin Fisher <darin@chromium.org>, public-device-apis@w3.org
On Mon, Mar 8, 2010 at 7:01 PM, Eric Uhrhane <ericu@google.com> wrote:

> > Thanks for posting this.  Some questions:
> > 1-  What is the proposed way to get a FileWriter from an <INPUT
> > type="saveas"> element?
>
> I was thinking of something like:
>
> var writer = document.forms['downloadData']['fileChooser'].fileWriter;
>
> If we make it parallel to the file reader API, that would be an array
> rather than a single FileWriter, but it's not clear to me that you'll
> ever actually want to browse for more than one save location in a
> single operation.


Hi Eric,

I've come up with another question...how do you plan about how to obtain a
FileWriterSync instance in a worker context?

As for obtaining a FileWriter in a worker context, probably what user should
do is get an instance from the document's SaveAs input element and send it
to the worker by calling postMessage()?

Thanks,
Received on Wednesday, 24 March 2010 03:21:23 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:14:07 GMT