[Zope] File types and OpenOffice documents (text)
Gilles Lenfant
gilles at pilotsystems.net
Fri Aug 29 17:54:48 EDT 2003
Hi,
When uploading an OpenOffice text document ("foo.sxw") to a File object
("foo.sxw"), it's content type prop is set to "application/x-zip-compressed"
!!!
When downloading it with IE or Mozilla (Windows) it renames the file
"foo.sxw.zip". The user has to rename it :-(.
Is there a way to set the correct content type automatically at upload time
(dunno which) and prevent renaming the file ?
* Upload through Python scripts that detects those strnga behaviours and set
the content type according to the file extension ?
* Add a plugin to the File class to check the right type and set content
type accordingly ?
* Other ?
I didn't test but this happens perhaps to other OpenOffice files too
(spreadsheets, presentations...)
Thanks in advance.
--Gilles
More information about the Zope
mailing list