[Zope] application/octet-stream vs. application/msword

Jean Jordaan Jean@mosaicsoftware.com
Thu, 10 Aug 2000 16:05:54 +0200


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 
'application/octet-stream'. 

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).

-- 
jean