How should he know if the mime type isn't good ? Divination ?

"When there is no viewer for the given MIME type,"

If the MIME type is something firefox has awareness of,
it is probably good. The only exception I know of is RPM
files usually being served as something related to RealPlayer.

If the MIME type is something that firefox does not have
info for, then do as if firefox were just browsing the filesystem
with a file:///tmp/filename.foo URL.

Note that guessing is probably more accurate in all cases.
The web server probably just maps file extensions to MIME,
and probably does a bad job of it. The web server has no
knowlege of what the client's MIME database contains.
Quite sensibly, IE always makes a local determination of
the MIME type, no matter what the web server provides.
I'm just asking to do that when the web server provides a
MIME type that is unhelpful, not all the time.

Also, note that the application/octet-stream type really just
means that the server has no clue. Try to determine the
type by other means (magic and/or file extension) so that
something useful can be done.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to