Bug 51050 - MIME types for m4a & m4v files
MIME types for m4a & m4v files
Product: Tomcat 7
Classification: Unclassified
Component: Catalina
All All
: P2 minor (vote)
: ---
Assigned To: Tomcat Developers Mailing List
Depends on:
  Show dependency tree
Reported: 2011-04-11 11:08 UTC by Cédrik LIME
Modified: 2011-04-16 18:54 UTC (History)
0 users

Patch for additional common mpeg 4 mime types (926 bytes, patch)
2011-04-11 11:08 UTC, Cédrik LIME
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Cédrik LIME 2011-04-11 11:08:19 UTC
Created attachment 26874 [details]
Patch for additional common mpeg 4 mime types

Tomcat correctly serves MPEG 4 files with a standardized file extension of .mp4, as video/mp4.

Common but non-standard mpeg4 files also use of the extensions .m4a and .m4v, which are unknown to Tomcat and are therefore served without any "Content-Type" header. This behaviour leads Internet Explorer to display garbage when following a link to such a file.

This patch adds the correct MIME type for MPEG 4 files with extensions m4a, m4b, m4r and m4v. (It omits the m4p extension, which is both not widely used, and of limited interest since the data is encrypted.)

Comment 1 Mark Thomas 2011-04-16 18:54:09 UTC
Fixed in 7.0.x and will be included in 7.0.13 onwards.

Thanks for the patch.