Page MenuHomePhabricator

No longer possible to upload oga or ogv
Closed, ResolvedPublic

Description

A user on Commons reported that he could not upload files with .oga or .ogv because "File extension does not match MIME type."

This is probably because the ogg file needs to be parsed before any mimetype other than application/ogg is detected.....


Version: 1.17.x
Severity: major
URL: http://commons.wikimedia.org/wiki/Commons:Village_pump#.22File_extension_does_not_match_MIME_type..22_on_new_file_being_uploaded

Details

Reference
bz23375

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:05 PM
bzimport set Reference to bz23375.
bzimport added a subscriber: Unknown Object (MLST).

Abigor wrote:

This is not critical, I removed that

I get the error locally for .oga, but not for .ogv (for an audio only file)

Created attachment 7343
fix mime tables for oga

This is actually probably just oga specific. This patch cleans up the mime info for oga and I think it will fix this problem.

attachment oga.patch ignored as obsolete

I have verified that I can now upload a .oga on my local wiki.

The patch fixes the mime definitions as specified per: http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions

Since all are basically the same filetype, just with different content, all extensions are listed under application/ogg Perhaps .ogx should be added to all audio/ogg and video/ogg as well as a backup filetype ? not sure on that....

Created attachment 7344
added spx to the application/ogg list

Noticed that the application/ogg list was missing the .spx extension.

Attached:

Bryan.TongMinh wrote:

Fixed in r65816.