Hi Dieter & all
> The problem is, currently, not interesting enough for
> me to analyse is seriously.
I can well understand, I wish I could forget about it :(
> If you know, that you add only "*.doc" files
I add .doc, .zip, .exe (self-extracting zip), .pdf and
.ppt ... so the quick and di
Jean Jordaan writes:
>
> The other thing I'm wondering is, it looks as if '.doc' should
> *always* be recognized as msword. How could it sometimes turn up
> as octet-stream? To add documents I call:
>
>
> Add a document.
>
> The initial method of 'ccDocClass_factory' is 'ccDoc
Hi Dieter & all
> > How does Zope recognize the type of a file?
> It uses "OFS.content_types.guess_content_type"
OK, so 'manage_addFile' uses 'guess_content_type'?
I'm a bit confused here .. I see three lists of content
types, excerpted below. They are in:
1. 'lib/python/OFS/content_types.p
Jean Jordaan writes:
> How does Zope recognize the type of a file?
It uses "OFS.content_types.guess_content_type" (look at the source
in OFS/Image.py),
unless the manage_addFile specifies an explicit "content_type".
> Can Zope be taught more types?
Look at the source of "OFS.content_types".
Jean Jordaan wrote:
>
> Hi Zopers
>
> How does Zope recognize the type of a file? Mostly it
> recognizes .doc's correctly as 'application/msword', but
> sometimes they turn up as 'application/octet-stream'.
> Others, like .fh8 (Freehand) and .exe (self-extracting
> zip) are (unsurprisingly) also