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 turning up as
> The files are being added using
> <input type=hidden name=":method" value="manage_addProduct/OFSP/fileAdd">
> Can Zope be taught more types? Failing that, I guess I
> should try to catch the extension using
> "find(S, SUB[, START])" on the id (which is the filename).
When you say understand filetypes, Zope just looks at the xtension and
matches it to some known file types. you can add any custom mappings you
need to the content_types.py file in the OFS dir. these functions get
called for identifying file types.
Zope maillist - [EMAIL PROTECTED]
** No cross posts or HTML encoding! **
(Related lists -