Current time: 04-25-2014, 07:07 AM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Attachment mime types funky on forums?
02-22-2012, 10:04 AM
Post: #11
RE: Attachment mime types funky on forums?
(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).


PM me for custom plugins.
Visit this user's website Find all posts by this user
Quote this message in a reply
02-22-2012, 10:19 AM
Post: #12
RE: Attachment mime types funky on forums?
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...

Google SEO | Gravatar | Hooks | HTMLPurifier | Overview | Patches | PluginLibrary @ GitHub/frostschutz
Find all posts by this user
Quote this message in a reply
02-22-2012, 10:44 AM
Post: #13
RE: Attachment mime types funky on forums?
Yes that's probably the best solution. I'm posting a new issue on Redmine.


PM me for custom plugins.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | MyBB | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication