Posted by Simon Rigby on 07/16/06 13:06
Ah right, yes I understand. I was under the impression that using
anything that wouldnt be recognised by the browser was part of
"forcing" the download. I get it!
Does anyone know why this is nt working in IE6.
I have cut down the code to just apply the content disposition header.
Still workin Firefox but no joy in IE.
Simon
John Dunlop wrote:
> Simon Rigby:
>
> [re 'application/force-download' for CSVs]
>
> > But I'm interested to know why its bad practice?
>
> because there's already a MIME type registered for CSV, text/csv.
>
> 'application/force-download' isn't registered, and this subtype doesn't
> mark its proprietariness with 'x-' - going against the MIME spec.
>
> and content-type 'indicates the media type of the entity-body sent to
> the recipient' (RFC2616: 14.17); it doesn't disposition the message.
>
> more details in the archived discussions. HTH
>
> --
> Jock
[Back to original message]
|