MyBB Community Forums

Full Version: Attachment mime types funky on forums?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
(2012-02-22, 03:06 AM)BMR777 Wrote: [ -> ]
(2012-02-21, 01:27 PM)frostschutz Wrote: [ -> ]Try this, it works better

Odd, when I try to download that one it tries to download as a .bmp image, and Firefox says "This image cannot be displayed because it contains errors".

That's odd. Anyone else having anything similar, or is my Firefox just messed up? Smile

It's a ZIP file but the MIME seems to be BMP so Firefox outputs it as an image. You can force a download to your desktop and open it as a ZIP.
I just don't know how MyBB messed it up (or perhaps frostschutz faked the MIME type).
(2012-02-22, 10:04 AM)Pirata Nervo Wrote: [ -> ]I just don't know how MyBB messed it up (or perhaps frostschutz faked the MIME type).

MyBB messed it up by letting me fake the mime type.

It just uses whatever type the client used when uploading.

Since MyBB only allows specific extensions maybe it should just use the mime type that's normally used for that extension. A mime type provided by the client is just unreliable, even if you ignore people who fake it on purpose, there are just buggy clients around...
Yes that's probably the best solution. I'm posting a new issue on Redmine.
Pages: 1 2