Last modified: 2006-03-30 04:31:00 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T7277, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 5277 - Bad MIME type for MIDI files
Bad MIME type for MIDI files
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
http://commons.wikimedia.org/w/index....
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-03-17 11:04 UTC by Daniel Kinzler
Modified: 2006-03-30 04:31 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Daniel Kinzler 2006-03-17 11:04:10 UTC
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 :)
Comment 1 Brion Vibber 2006-03-30 04:31:00 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links