Page MenuHomePhabricator

Bad MIME type for MIDI files
Closed, ResolvedPublic

Description

The server delivers files with the ".mid" extension as
"application/octet-stream" instead of "audio/midi". This reportedly sometimes
throws off MS-IE, which (mis-)guesses the file format, and tries to display it
as an image. In any case a valid mime type would be a good idea.

Also, for some reason, MIDI files have the MIME type "audio/mid" in the
database, instead of "audio/midi". This can probably be fixed by tweaking
includes/mime.info file (the first entry in each line is the "primary" mime type
used in the DB). The values would need to be changed in the DB, too. And while
you are at it, fix the mime type for SVG too :)


Version: unspecified
Severity: normal
URL: http://commons.wikimedia.org/w/index.php?title=Image%3ASus_To_Minor_Or_Major_for_wikipedia.mid

Details

Reference
bz5277

Event Timeline

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

I've added .mid/.midi to the lighttpd configuration file on the
upload server so they are served with the correct type.

Switched the bit in mime.info, uploads are now correct. Will
run fixes on affected files in db.