Re: [whatwg] creating a new file via the File API

2011-12-18 Thread Bronislav Klučka
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 (or somethi

Re: [whatwg] creating a new file via the File API

2011-12-18 Thread Bronislav Klučka
Hi, yes, this is due to default browser behavior (my Chrome is set up to always ask). B. On 19.12.2011 7:17, David Karger wrote: When I run your example in chrome, all those links automatically download the file to the specified filename in my default download directory---none launch the file

Re: [whatwg] creating a new file via the File API

2011-12-18 Thread Glenn Maynard
2011/12/19 David Karger : >   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 conn

Re: [whatwg] creating a new file via the File API

2011-12-18 Thread David Karger
When I run your example in chrome, all those links automatically download the file to the specified filename in my default download directory---none launch the file save dialog. Of course that's because of how my chrome defaults are set. And indeed I can right click and file-save-as. But it'

Re: [whatwg] creating a new file via the File API

2011-12-18 Thread Bronislav Klučka
hi, if you look at the generated files examples, what you can see there (again, only in chrome) is that 1/ I have some data in JS 2/ I create blobbuilder -> blob -> url to that blob 3/ I create a element with URL to that blob and download attribute 4/ I initiate click on that link programmatica

Re: [whatwg] creating a new file via the File API

2011-12-18 Thread David Karger
Hi, 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 t

Re: [whatwg] creating a new file via the File API

2011-12-18 Thread Bronislav Klučka
Hi, This is quite crucial functionality and sadly not being addressed as it would seem, because without it application cannot really be applications (all you can do is to prepare data, upload those data to server and let user download it manually by clicking somewhere, which is annoying, unne