I upload an ogg file in media browser.
What I find in the file_managed table that the ogg file has been marked as type "application", not "audio". is there anything have to do with the MIME type of ogg file: application/ogg?
So you cannot choose it from media browser any more since it's not "audio", even not "other".
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | 1239064-fix-ogg-mimetype-mapping.patch | 3.27 KB | dave reid |
| #8 | 1239064-fix-ogg-mimetype-mapping.patch | 2.11 KB | dave reid |
| #6 | 1239064-fix-ogg-mimetype-mapping.patch | 2.11 KB | dave reid |
| #4 | 1239064-fix-ogg-mimetype-mapping.patch | 1.9 KB | dave reid |
Comments
Comment #1
dave reidHrm, take a look at http://api.drupal.org/api/drupal/includes--file.mimetypes.inc/function/f... - the 'ogg' file extension is default mapped to 'application/ogg'.
The real problem is that both audio and video ogg files can be both .ogg files and there really isn't a standard to differentiate them. I guess we could maybe update that default mapping to map '.ogg' to audio/ogg since '.ogv' is mapped to 'video/ogg'.
Comment #2
dave reidAh now I see this on http://en.wikipedia.org/wiki/Ogg
We should file a core patch to correct this and also fix this in File entity in the meantime.
Comment #3
dave reidCore patch has been filed at #1239376: .ogg file extension incorrectly mapped to 'application/ogg' in file_default_mimetype_mapping() and could use reviews.
Comment #4
dave reidPlease test the following patch for file_entity 7.x-1.x.
Comment #6
dave reidComment #8
dave reidComment #10
dave reidComment #11
dave reidComment #13
dave reid#10: 1239064-fix-ogg-mimetype-mapping.patch queued for re-testing.
Comment #15
dave reidCommitted #10 to Git. We have to just live with test failures for now.
http://drupalcode.org/project/file_entity.git/commit/9eba2c6