[Archetypes-users] Trouble with .docx files in uploads

6 views
Skip to first unread message

Jardar Maatje

unread,
Oct 7, 2011, 9:40:05 AM10/7/11
to archetyp...@lists.sourceforge.net

When I upload files with QuickUpload my docx files looses their extension and I get no icon for them. When I select the file I get an error and is unable to view or download the file. (The Traceback can be found below). I just want to be able to download the file. It seems that error comes from a bug described here: http://dev.plone.org/plone/ticket/12061

 

I also looked at the mime types in ZOPE manager interface : http://myhost.mydomain/nortek/mimetypes_registry/manage_main. I got an entry for extension: docx as follows:

Name : application/vnd.openxmlformats-officedocument.wordprocessingml.document

Icon path : application.png

Binary : yes

Mime-types: application/vnd.openxmlformats-officedocument.wordprocessingml.document

Extensions: docx

Globx :

 

So my question. What can I do to solve this problem?

 

Jardar

 

 

Traceback (innermost last):

Module ZPublisher.Publish, line 127, in publish

Module ZPublisher.mapply, line 77, in mapply

Module ZPublisher.Publish, line 47, in call_object

Module Shared.DC.Scripts.Bindings, line 324, in __call__

Module Shared.DC.Scripts.Bindings, line 361, in _bindAndExec

Module Products.CMFCore.FSPageTemplate, line 240, in _exec

Module Products.CMFCore.FSPageTemplate, line 180, in pt_render

Module Products.PageTemplates.PageTemplate, line 80, in pt_render

Module zope.pagetemplate.pagetemplate, line 113, in pt_render

Module zope.tal.talinterpreter, line 271, in __call__

Module zope.tal.talinterpreter, line 343, in interpret

Module zope.tal.talinterpreter, line 888, in do_useMacro

Module zope.tal.talinterpreter, line 343, in interpret

Module zope.tal.talinterpreter, line 533, in do_optTag_tal

Module zope.tal.talinterpreter, line 518, in do_optTag

Module zope.tal.talinterpreter, line 513, in no_tag

Module zope.tal.talinterpreter, line 343, in interpret

Module zope.tal.talinterpreter, line 954, in do_defineSlot

Module zope.tal.talinterpreter, line 343, in interpret

Module zope.tal.talinterpreter, line 533, in do_optTag_tal

Module zope.tal.talinterpreter, line 518, in do_optTag

Module zope.tal.talinterpreter, line 513, in no_tag

Module zope.tal.talinterpreter, line 343, in interpret

Module zope.tal.talinterpreter, line 858, in do_defineMacro

Module zope.tal.talinterpreter, line 343, in interpret

Module zope.tal.talinterpreter, line 954, in do_defineSlot

Module zope.tal.talinterpreter, line 343, in interpret

Module zope.tal.talinterpreter, line 533, in do_optTag_tal

Module zope.tal.talinterpreter, line 518, in do_optTag

Module zope.tal.talinterpreter, line 513, in no_tag

Module zope.tal.talinterpreter, line 343, in interpret

Module zope.tal.talinterpreter, line 954, in do_defineSlot

Module zope.tal.talinterpreter, line 343, in interpret

Module zope.tal.talinterpreter, line 533, in do_optTag_tal

Module zope.tal.talinterpreter, line 518, in do_optTag

Module zope.tal.talinterpreter, line 513, in no_tag

Module zope.tal.talinterpreter, line 343, in interpret

Module zope.tal.talinterpreter, line 946, in do_defineSlot

Module zope.tal.talinterpreter, line 343, in interpret

Module zope.tal.talinterpreter, line 533, in do_optTag_tal

Module zope.tal.talinterpreter, line 518, in do_optTag

Module zope.tal.talinterpreter, line 513, in no_tag

Module zope.tal.talinterpreter, line 343, in interpret

Module zope.tal.talinterpreter, line 858, in do_defineMacro

Module zope.tal.talinterpreter, line 343, in interpret

Module zope.tal.talinterpreter, line 533, in do_optTag_tal

Module zope.tal.talinterpreter, line 518, in do_optTag

Module zope.tal.talinterpreter, line 513, in no_tag

Module zope.tal.talinterpreter, line 343, in interpret

Module zope.tal.talinterpreter, line 888, in do_useMacro

Module zope.tal.talinterpreter, line 343, in interpret

Module zope.tal.talinterpreter, line 533, in do_optTag_tal

Module zope.tal.talinterpreter, line 518, in do_optTag

Module zope.tal.talinterpreter, line 513, in no_tag

Module zope.tal.talinterpreter, line 343, in interpret

Module zope.tal.talinterpreter, line 888, in do_useMacro

Module zope.tal.talinterpreter, line 343, in interpret

Module zope.tal.talinterpreter, line 533, in do_optTag_tal

Module zope.tal.talinterpreter, line 518, in do_optTag

Module zope.tal.talinterpreter, line 513, in no_tag

Module zope.tal.talinterpreter, line 343, in interpret

Module zope.tal.talinterpreter, line 583, in do_setLocal_tal

Module zope.tales.tales, line 696, in evaluate
URL: file:c:\plone\eggs\products.archetypes-1.6.5-py2.6.egg\Products\Archetypes\skins\archetypes\widgets\file.pt
Line 17, Column 8
Expression: <PathExpr standard:u'unit/getBestIcon | nothing'>
Names:

{'container': <PloneSite at /nortek>,

 'context': <ATFile at /nortek/innhold/transfer/finished-change-orders/changeorderct.2011-09-27.8194493135/old-ss-screens.docx>,

 'default': <object object at 0x00481748>,

 'here': <ATFile at /nortek/innhold/transfer/finished-change-orders/changeorderct.2011-09-27.8194493135/old-ss-screens.docx>,

 'loop': {},

 'nothing': None,

 'options': {'args': ()},

 'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0x07CF2030>,

 'request': <HTTPRequest, URL=http://wiki.nortek.no:8080/nortek/innhold/transfer/finished-change-orders/changeorderct.2011-09-27.8194493135/old-ss-screens.docx/file_view>,

 'root': <Application at >,

 'template': <FSPageTemplate at /nortek/file_view used for /nortek/innhold/transfer/finished-change-orders/changeorderct.2011-09-27.8194493135/old-ss-screens.docx>,

 'traverse_subpath': [],

'user': <PloneUser 'jardarm'>}

Module zope.tales.expressions, line 217, in __call__

Module Products.PageTemplates.Expressions, line 157, in _eval

Module Products.PageTemplates.Expressions, line 107, in render

Module Products.PageTemplates.ZRPythonExpr, line 81, in call_with_ns

Module Products.CMFCore.FSPythonScript, line 125, in __render_with_namespace__

Module Shared.DC.Scripts.Bindings, line 338, in __render_with_namespace__

Module Shared.DC.Scripts.Bindings, line 361, in _bindAndExec

Module Products.PythonScripts.PythonScript, line 344, in _exec

Module script, line 7, in getBestIcon
<FSPythonScript at /nortek/getBestIcon used for /nortek/innhold/transfer/finished-change-orders/changeorderct.2011-09-27.8194493135/old-ss-screens.docx>
Line 7

Module Products.MimetypesRegistry.MimeTypesRegistry, line 220, in lookup
__traceback_info__: ("'None'", 'None')

Module Products.MimetypesRegistry.MimeTypesRegistry, line 457, in split

MimeTypeException: Malformed MIME type (None)

Reply all
Reply to author
Forward
0 new messages