[Zope] png content type woe - solved

LEE, Kwan Soo kslee@plaza1.snu.ac.kr
Tue, 25 Apr 2000 00:59:24 +0900


You are right, again, Brian.

Upon your suggestion, I've downloaded & tested with M15 and viola, the correct content type "image/png"!

The bastard clients are the root of the evil. They are MS I.E. 5.0 Korean version and Netscape 4.51 English version both on Win98 Korean version. 

BTW, could you tell me what part of the source that read the content type sent by the client is, if you write from memory instantly? This newbie have not noticed that, and eager to Read the Source.

Thanks a lot!

LEE Kwan Soo.

> What are you using to upload the .png files? I bet that what
> is happening is that the client you are using to upload is 
> saying that they are of type 'image/x-png'. When you upload
> an Image (or File), it will store whatever content-type the 
> client claims that the object is and return that as the 
> content-type when the image/file is viewed (if the client
> doesn't give a content-type Zope will guess, but the code for
> guessing would have returned the right thing: 'image/png').
> 
> 
> Brian Lloyd        brian@digicool.com
> Software Engineer  540.371.6909              
> Digital Creations  http://www.digicool.com 
> 
> 
>