See http://en.wikipedia.org/wiki/Ogg
Before 2007, the .ogg filename extension was used for all files whose content used the Ogg container format. Since 2007, the Xiph.Org Foundation recommends that .ogg only be used for Ogg Vorbis audio files. The Xiph.Org Foundation decided to create a new set of file extensions and media types to describe different types of content such as .oga for audio only files, .ogv for video with or without sound (including Theora), and .ogx for multiplexed Ogg.
Current mappings from file_default_mimetype_mapping():
return array(
'mimetypes' => array(
17 => 'application/ogg',
189 => 'audio/ogg',
331 => 'video/ogg',
),
'extensions' => array(
'ogg' => 17,
'ogx' => 17,
'oga' => 189,
'ogv' => 331,
),
);
As you can see 'ogg' is currently mapped to 'application/ogg' when it should be linked to 'audio/ogg'.
This was originally reported in #1239064: ogg file has been marked as type "application"? in the Media module.
Comment | File | Size | Author |
---|---|---|---|
#1 | 1239376-ogg-default-mimetype-mapping.patch | 1.38 KB | Dave Reid |
Comments
Comment #1
Dave ReidPatch with tests attached for review against 8.x. Likely applies with little to no offset to 7.x as well.
Comment #2
Damien Tournoud CreditAttribution: Damien Tournoud commentedSounds good.
Comment #3
Dave ReidComment #4
Dries CreditAttribution: Dries commentedCommitted to 7.x and 8.x. Good catch, Dave.