[whatwg] creating a new file via the File API

Hi,
I agree, additional API for this would be better
FileSaver is not exactly all you would need, because FileSaver is 
already implemented e.g. in Chrome
to save file to browser file system (requestFileSystem).
There were suggestions about
window.saveAs() method to display dialog
or
<input type="saveas">
(or something like that if I remember correctly)
that would open regular operating system Save As  dialog and let you 
select file on regular file system

I have no idea where this discussion stopped and why, pity though...

Brona

On 19.12.2011 7:18, Glenn Maynard wrote:
> 2011/12/19 David Karger<karger at mit.edu>:
>>    What you're doing is certainly connected, but I don't think it solves the
>> problem I outlined.  Your approach allows specification of the download
>> target as an attribute in html.   That's useful, but what's still missing,
>> and I consider important, is a way to connect the html document to the "Save
>> As" dialog available on all OSes.<input>  tags lead browsers to launch the
>> "Open File" dialog, which lets the user naturally navigate their file system
>> to select a file to open.   Browsers also launch the analogous "Save As"
>> dialog, but _only_ when you execute a download from a server.  I think it's
>> important to enter the same "Save As" dialog programmatically, for
>> client-side generated content.  I don't think this raises the security
>> issues discussed at mozilla, because the user is engaged in the same
>> interaction as they are on any other file download.
> As Eric already answered, this is what the proposed FileSaver API is for.
>
> (It wouldn't make sense for this to be exposed as a tag, any more than
> it would make sense for XHR or History or IndexedDB to be tags.  It's
> just an API that you can hook up to whatever UI you want.)
>

-- 

s pozdravem
          Bronislav Klu?ka



http://www.bauglir.com <http://www.bauglir.com>

http://www.bauglir.com
Bronislav.Klucka at bauglir.com  <mailto:Bronislav.Klucka at bauglir.com>

   * webov? aplikace
   * software na zak?zku

Received on Sunday, 18 December 2011 23:56:34 UTC