Thanks for your response Jeanfrancois,
It appeared just to be my now version of Internet Explorer acting up.
My manager actually changed his mind a few minutes later and wanted that our
users always download the file before viewing it. It makes some sense
because the videos are over an hour long.
To do this I change the mime-type to application/octet-stream. This works
fine for Netscape (i.e. Save As dialog appears), but Internet Explorer just
doesn't care and opens media player (grrr....). I know this is an IE issue
and this also happens with some other mime-types.
I guess I develop a servlet and serve the file to the user via that servlet.
Then I can add the Content-disposition header so that it downloads as a
file.
i.e. response.setHeader("Content-disposition", "attachment;
filename=mediafile.wmv");
Thanks,
Patrick
-----Original Message-----
From: Jeanfrancois Arcand [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 26, 2004 12:23 PM
To: Tomcat Users List
Subject: Re: video/x-ms-wmv mime-type added for wmv files, but doesn't
seem to work
Patrick Willart wrote:
>Hello,
>
>I've added the following to my conf/web.xml but it looks like Tomcat
>(5.0.18) isn't picking this up. It's serving the file as a plain text file.
>I've tried adding the mime-mapping to my applications web.xml but also
>without result.
>
> <mime-mapping>
> <extension>wmv</extension>
> <mime-type>video/x-ms-wmv</mime-type>
> </mime-mapping>
>
>I have added mime-mappings before and those seem to work. Does anybody have
>an idea what's wrong?
>
>
Any exceptions visible? Open server.xml, search for xmlValidation and
xmlNamespaceAware. But both value set to true. Restart Tomcat. Is the
web.xml well parsed?
-- Jeanfrancois
>Thanks,
>
>Patrick
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]