10 Aug
2000
10 Aug
'00
2:05 p.m.
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