Jump to content


Attachments fixed


4 replies to this topic

#1 CodeCat

    It's a trap!

  • Gold Member
  • 6111 posts

Posted 25 February 2006 - 20:03

After a little investigating and PHP editing I've managed to fix the attachments not being displayed properly. Instead of a proper picture, you would get a screen full of nonsense. That has been fixed now, so all attachments should be viewable from now on. :P

A little more inside info for those interested:
The cause of this was that the HTTP headers weren't being sent properly due to a small script bug. Thus, the MIME type wasn't reported correctly for the file, instead everything was being sent as text/html. The reason it worked in Internet Explorer might be that IE ignores the MIME type when it sees that the content is really a picture. Firefox however takes the MIME type seriously (as it should!) and displays it as HTML when told to do so.
CodeCat

Posted Image
Posted Image

Go dtiomsaítear do chód gan earráidí, is go gcríochnaítear do chláir go réidh. -Old Irish proverb

#2 Alias

    Member Title Goes Here

  • Member
  • 11705 posts

Posted 26 February 2006 - 00:08

Woot... Attachments work on firefox :P

Posted Image

#3 Waris

    Endless Sip

  • Gold Member
  • 7458 posts
  • Projects: The End of Days, DTU Donutin Council Co-Chairman

Posted 26 February 2006 - 03:37

Thanks man. Now I can browse with Firefox in peace :P But for those who still using IE... :P

#4 Alias

    Member Title Goes Here

  • Member
  • 11705 posts

Posted 26 February 2006 - 04:40

Lol.

Posted Image

#5 Prophet of the Pimps

    Masters of Booty Strike Force

  • Gold Member
  • 11369 posts
  • Projects: ShockWave

Posted 27 February 2006 - 07:09

so firefox was not working because it was actually doing what is suppose to do. Yikees.
Never underestimate a Resourceful Idiot
Posted Image



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users