Add MP4 to mime.types
authorBrian Wolff <bawolff+wn@gmail.com>
Mon, 19 Aug 2013 16:17:06 +0000 (13:17 -0300)
committerBrian Wolff <bawolff+wn@gmail.com>
Mon, 19 Aug 2013 16:25:32 +0000 (13:25 -0300)
Its a popular video format, we should recognize its type.

This will also prevent people from uploading mp4's to commons.

Wikipedia claims m4a sometimes used for video content.
RFC 4337 says audio/mp4 is mime type for mp4 with no
video (which is usually what an m4a extension means).

Bug: 52990
Change-Id: I5c24c3e318651241cced5b36d107d3603a289427

includes/mime.info
includes/mime.types

index f7576e4..a4e8b64 100644 (file)
@@ -30,6 +30,7 @@ application/x-dia-diagram [DRAWING]
 
 
 audio/mpeg audio/mp3 audio/mpeg3       [AUDIO]
+audio/mp4                              [AUDIO]
 audio/wav audio/x-wav audio/wave       [AUDIO]
 audio/midi audio/mid   [AUDIO]
 audio/basic            [AUDIO]
@@ -46,6 +47,7 @@ video/x-sgi-video             [VIDEO]
 video/x-flv                    [VIDEO]
 video/webm                     [VIDEO]
 video/x-matroska               [VIDEO]
+video/mp4                      [VIDEO]
 
 application/ogg application/x-ogg audio/ogg audio/x-ogg video/ogg video/x-ogg          [MULTIMEDIA]
 
index a89d229..378f274 100644 (file)
@@ -118,6 +118,8 @@ text/xml xml xsl xslt rss rdf
 text/x-setext etx
 text/x-sawfish jl
 video/mpeg mpeg mpg mpe
+video/mp4 mp4 m4a m4p m4b m4r m4v
+audio/mp4 m4a
 video/ogg ogv ogm ogg
 video/quicktime qt mov
 video/vnd.mpegurl mxu