Page MenuHomePhabricator

No longer possible to upload oga or ogv
Closed, ResolvedPublic


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



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:

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.


Bryan.TongMinh wrote:

Fixed in r65816.