W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2013

Re: [whatwg] Priority between <a download> and content-disposition

From: Nils Dagsson Moskopp <nils@dieweltistgarnichtso.net>
Date: Tue, 19 Mar 2013 15:31:46 +0100
To: rescator@emsai.net
Message-ID: <20130319153146.516a545b@desudesudesu>
Cc: whatwg@lists.whatwg.org
Roger Hågensen <rescator@emsai.net> schrieb am Tue, 19 Mar 2013
14:31:15 +0100:

> […]

> What should be shown if there is an issue/conflict?
> Maybe:
> Download "https://example.com/reports/1/xml/" as "report1.xml" ?
> WARNING! File identified as actually being an executable! (*.exe)

At least here on Debian GNU/Linux, executables have no file extension.
Besides that, what would be the MIME type of windows executables?

> Or:
> Download "https://example.com/reports/1/xml/" as "report1.xml" ?
> NOTE! File identified as not being a xml, appears to be text. (*.txt)

So, what about polyglots?

> […]

> The key though is showing: Download "url" as "file.ext" ?
> And in cases where a quick file header scan reveals a possible issue
> (or simply wrong fileformat extension) either a notice or warning
> text in addition.
> But this is only if the user actually hose "Save As" in the download 
> dialog, they might have chosen "Share on facebook" or "Print" or
> "Email to..." or even "Open"
> a similar but different dialog would obviously be needed in that case.

I find all of this approach insanely complex for a negligible benefit.

Nils Dagsson Moskopp // erlehmann
Received on Tuesday, 19 March 2013 14:32:25 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:20 UTC