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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Dave Reid’s picture

Status: Active » Needs review
FileSize
1.38 KB

Patch with tests attached for review against 8.x. Likely applies with little to no offset to 7.x as well.

Damien Tournoud’s picture

Status: Needs review » Reviewed & tested by the community

Sounds good.

Dave Reid’s picture

Issue tags: +Needs backport to D7
Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 7.x and 8.x. Good catch, Dave.

Automatically closed -- issue fixed for 2 weeks with no activity.