Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Attachment mime types funky on forums?
#11
(02-22-2012, 03:06 AM)BMR777 Wrote:  
(02-21-2012, 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).
Reply
#12
This user has been denied support. This user has been denied support.
(02-22-2012, 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...
Reply
#13
Yes that's probably the best solution. I'm posting a new issue on Redmine.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)