FIleWriter and saveAs

I'd like to open discussion on this action item, so that hopefully I
can satisfy it:

ACTION-126: Robin Berjon to Modify FileWriter to add the saveFile() method

This dates back to the minutes from the teleconference on March 17th;
I've included the entire FileWriter section below for reference.  From
those minutes I can't figure out what the requirements or use cases
for this method are.  Are you trying to find a way to save a file
without a user prompt?  To get outside the sandbox?  Are your needs
addressed by the FileSystem API?  Would they be addressed by the Blob
content-disposition proposal discussed on the webapps working group
[1].  Are your concerns well-documented by the [recently updated] open
issues in section 7?

There's been relevant discussion on the webapps working group
recently; I've stated my opinions at [2] and [3] and am waiting to see
if anyone responds to the latter post.  Robin's been helping the
discussion along [thank you!]; does anyone else on DAP want to weigh
in?

Thanks,

      Eric

[1] http://lists.w3.org/Archives/Public/public-webapps/2010JanMar/0910.html
[2] http://lists.w3.org/Archives/Public/public-webapps/2010AprJun/0372.html
[3] http://lists.w3.org/Archives/Public/public-webapps/2010AprJun/0412.html

Excerpts from March 17th minutes:

### File Writer

<darobin> [FileWriter API editors draft][36]

darobin: TOPIC - File API Writer

<jmorris> thanks

darobin: a lot of discussions around the File Writer API

... Section 2.1 - File Writer API JS example

... Do we keep the Automatic Line ending issue ?

bsulliva: does the platform caould modify the CR ?

darobin: it's a kind of encoding issue,

... there's a Sync. version of the File Writer API

... Section 7 is completely wrong.

... the use of the "input" element will prompt a doanload dialog.

... We need to create another method, instead of using the "input" method

<dom> PROPOSED RESOLUTION: Replace <input type="saveas"> by a JavaScript
method such as navigator.saveFile()

<dom> **ACTION:** Robin to modify FileWriter to add the saveFile() method
[recorded in [http://www.w3.org/2010/03/17-dap-minutes.html#action11][37]]

<trackbot> Created ACTION-126 - Modify FileWriter to add the saveFile() method
[on Robin Berjon - due 2010-03-24].

ilkka: how we know the end of the file if we don't have a Read access ?

**RESOLUTION: Replace <input type="saveas"> by a JavaScript method such as
navigator.saveFile()**

darobin: ... we could do that with the Seek method

ilkka: we need to check that (use of the length attribute) in the File Writer
API

**RESOLUTION: We publish FileWRiter as FPWD once new fileWriter entry point is
added**

Received on Wednesday, 5 May 2010 02:54:09 UTC