[whatwg] "Content-Disposition" property for <a> tags

Glenn Maynard glenn at zewt.org
Mon Apr 11 10:28:18 PDT 2011

On Mon, Apr 11, 2011 at 12:48 PM, Eric Uhrhane <ericu at google.com> wrote:

> Folks did propose making FileSaver do this at TPAC, but we haven't
> gotten around to hashing out the details yet.  The idea was that
> FileSaver would take a URL instead of a Blob, and thus could also be
> used for downloading arbitrary links.

I missed that API; I like that approach.  <a href=url
onclick="if("FileSaver" in window) { new FileSaver(this.href); return false;

By the way, FileSaver's constructor doesn't take a filename hint as an
argument.  I think that's important, since non-File Blobs don't have an
associated name.

Glenn Maynard

More information about the whatwg mailing list