[Zope] png content type woe - solved
Brian Lloyd
Brian@digicool.com
Mon, 24 Apr 2000 14:12:32 -0400
> 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.
In lib/python/OFS/Image.py:
The 'manage_upload' method which handles the file upload calls
'self._get_content_type' to find out the content-type. That method
returns the content-type header from the file uploaded if provided,
otherwise it tries to guess.
Brian Lloyd brian@digicool.com
Software Engineer 540.371.6909
Digital Creations http://www.digicool.com