Friday, 23 August 2013

Railo 4/ Tomcat / IIS7.5 / Coldfusion / cffile upload of docx not working

Railo 4/ Tomcat / IIS7.5 / Coldfusion / cffile upload of docx not working

I have a webapplication that i just moved from a Coldfusion server to a
Railo server. Quite some mainly smaller issues, but this one is puzzling
me for quite some time now:
I have a upload functionality for files. Everything works fine for almost
all files, just .docx files dont get uploaded. In Railo I see the error:
form field [form.docsbestand] is not a file field
I have registerd the docx mimetype in IIS and Tomcat as
application/vnd.openxmlformats-officedocument.wordprocessingml.document
I just did a small test and cfdumped the #form# twice...first time with
.doc file, second time with docx file
the result:
docsbestand string C:\inetpub\wwwroot\site\WEB-INF\railo\temp\tmp-321.upload
fieldnames string jsoninput,docsbestand
jsoninput string {"PRO":{"idaanvraag":"052300022920333
,"bron":"Spontaan"},"apiklant":"demo","apikey":KL541231231}
second one with .docx file
docsbestand string PK!0�(r�[Content_Types].xml
�(��T�n�0�W�?D�V������[��0��z��l�I�Q�B�
\"%���ك�ښl
�w%�=���^i7+���%�g&�0�A�6�l4��L60#��S
����X��&��V$z�3��3෽���%p)O5�����5}�:��e�ۅ�V�DFK��)_:�K%�)�l��\�!��U�'�v�7�&j�X��*,��+W^.,�����W����k��D�ܚ��X�ݷ��>��N!��FZ�&0m��ly��)�q�9��d}��@��?Ĥ�����R��/��s���*&:t��g������ˉ�8Y�O�[�&V0}�X�?Ȼ���>&#655
33;#��;�F�io.����PK!���N_rels/.rels
�(����JA���a�}7�
"���H�w"����w̤ھ��
&#65533;P&#65533;^&#65533;&#65533;&#65533;&#65533;O&#1435;&#65533;&#65533;&#65533;;&#65533;<&#65533;aY&#1376;&#1563;G&#65533;kxm&#65533;&#65533;PY&#65533;[&#65533;&#65533;g
G&#944;ino&#65533;/<&#65533;&#65533;&#65533;<&#65533;1&#65533;&#65533;&#11462;A$>"f3&#65533;&#65533;\&#65533;&#574;T&#65533;&#65533;I
S&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;W&#65533;&#65533;&#65533;&#65533;Y
ig&#65533;@&#65533;&#65533;X6_&#65533;]7~
f&#65533;&#65533;&#713;&#65533;ao&#65533;.b*lI&#65533;r&#65533;j)&#65533;,l0&#65533;%&#65533;&#65533;b&#65533;
6&#65533;i&#65533;&#65533;&#65533;D&#65533;_&#65533;&#65533;&#65533;,
&#65533;
&#65533;&#65533;&#65533;|u&#65533;Z^t&#1634;y&#495;;!Y,}{&#65533;C&#65533;&#65533;/h>&#65533;&#65533;PK!&#673;&#65533;&#65533;9word/_rels/document.xml.rels
&#65533;(&#65533;&#65533;&#65533;&#65533;N&#65533;@&#65533;&#65533;&&#65533;&#1659;l&#65533;ZMS&#65533;5&#65533;&#65533;&#65533;&#65533;la&#65533;.&#65533;dw&#65533;&#65533;&#65533;I(4&#65533;x&#65533;B2&#65533;}?fvX&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;(&<&#65533;&#292;%&#65533;&#65533;o&#65533;&#65533;Ha&#65533;&#65533;AEN&#65533;&#65533;&#65533;&#65533;;hE&#65533;+&#65533;&#65533;y&#65533;.Q&#65533;&#65533;&#65533;%T&#65533;&#65533;&#65533;;&#65533;&#65533;&#65533;".m.k&#65533;&#65533;Tr>&#65533;-&#65533;z&#65533;&#65533;&#65533;&#65533;&#1764;&#65533;&#65533;&#65533;&#65533;VxqSs&#65533;&#65533;&#65533;&&#65533;&#65533;&#65533;M&#65533;&#65533;&#65533;B&#65533;t@&#65533;&#65533;&#65533;S&#65533;(&#65533;&#65533;3&#65533;&#65533;&#65533;&#65533;D
n
&#65533;&#65533;m)&#65533;k0&#65533;0&#65533;&#65533;&#65533;Q&#65533;y&#65533;}&#65533;z,>&#65533;2&#65533;&#65533;,&#993;'8Jc&#65533;)!2&#65533;&#65533;&#65533;&#65533;&#65533;(&#65533;A&#65533;O
Q&#65533;&#630;&#65533;&#65533;]&#1993;J&#65533;&#65533;&#65533;2&#65533;&#65533;ç&#65533;&#1071;&#65533;&#65533;z3)/&#65533;&#705;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;MI&#65533;
&#1743;&#65533;&#65533;&#65533;]&#65533;&#65533;&#65533;!&#65533;&#65533;&#65533;PK!q&#65533;&#65533;
&#65533;word/document.xml&#65533;]Ks&#65533;H&#65533;o&#65533;&#65533;&#65533;&#65533;c~B&#65533;&#65533;&#65533;s&#65533;;&#65533;nm&#65533;F&#65533;@&#65533;&#65533;B0&#65533;&#65533;&#65533;B&#65533;&#65533;
!&#65533;6&#65533;­9&#65533;i
J&#65533;&#65533;>+&#65533;&#65533;&#24063;&&#65533;6&#65533;o:&#65533;Y&#65533;&#65533;&#65533;&#65533;4nôGg&#65533;&#455;&#65533;&#65533;iM&#65533;f&#65533;rl~V{&#65533;~&#65533;&#65533;&#65533;&#65533;&#65533;e&#65533;1&#65533;&#65533;t&#65533;&#65533;@&#65533;!l&#65533;3&#65533;&#65533;&#65533;
p;&#65533;&#65533;?&#65533;
&#65533;&#65533;&#65533;&#65533;ps&#65533;x&#65533;?&#65533;Qc¼&#65533;[8&#65533;f&#2036;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;Z4&#65533;sV&#65533;zv'&#65533;>1&#65533;&#65533;;&#65533;&#65533;q&#65533;Cs&#65533;&#65533;&#65533;/&#65533;s&#65533;&#65533;&#65533;H&#65533;&#65533;&#65533;48&#65533;?6]&#65533;6y&#65533;h&#65533;&#65533;X2&#65533;&#65533;&#65533;lb&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;i&#65533;&#65533;&#65533;&#1561;0u|n&#65533;&#65533;&#65533;&#65533;&#65533;n&#65533;&#65533;O&#65533;&#1420;Y&#65533;-&#501;&#65533;&#65533;%&#65533;&#1416;&#65533;n&#65533;@&#65533;B&#65533;&#65533;&#65533;c(&#65533;&#65533;k&#65533;
fieldnames string jsoninput,docsbestand
jsoninput string {"PRO":{"idaanvraag":"052300022920333"
,"bron":"Spontaan"},"apiklant":"demo","apikey":KL541231231}
Somehow the file is not uploaded to the tmp-directory but
read/parsed/whatever. And ofcourse the cffile upload wont work in those
cases.
What could be causing this?
thanks! Bart

No comments:

Post a Comment