# Upload .docx file in Alfresco folder Problem

**URL:** <https://community.ofelia.com/t/upload-docx-file-in-alfresco-folder-problem/8060>\
**Category:** Q&A\
**Created:** [6 January 2017 08:16 UTC](https://community.ofelia.com/t/upload-docx-file-in-alfresco-folder-problem/8060 "2017-01-06T08:16:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lee.chang223](https://avatars.discourse-cdn.com/v4/letter/l/8edcca/32.png) [@lee.chang223](https://community.ofelia.com/u/lee.chang223)\
**Post date:** [6 January 2017 08:16 UTC](https://community.ofelia.com/t/upload-docx-file-in-alfresco-folder-problem/8060/1 "2017-01-06T08:16:41Z")

</div>

I want to upload folder using bonita connector in folder path like Repository\> News\> Hello\> folder. Its uploading all other format files like .pdf .png .jpg but its not uploading .docx file. Its uploading .docx file when folder path is like Repository\> News\> folder. Its giving error like.

Error:

FLOW\_NODE\_INSTANCE\_ID=151 | FLOW\_NODE\_NAME=Step2 | CONNECTOR\_IMPLEMENTATION\_CLASS\_NAME=uploaddoc | CONNECTOR\_INSTANCE\_ID=27 | org.bonitasoft.engine.connector.exception.SConnectorException: java.util.concurrent.ExecutionException: org.apache.chemistry.opencmis.commons.exceptions.CmisInvalidArgumentException: Media type must be set if a stream is present!  
at org.bonitasoft.engine.core.connector.impl.ConnectorServiceImpl.executeConnectorInClassloader(ConnectorServiceImpl.java:275)  
at org.bonitasoft.engine.core.connector.impl.ConnectorServiceImpl.executeConnector(ConnectorServiceImpl.java:148)  
at org.bonitasoft.engine.connector.ConnectorServiceDecorator.executeConnector(ConnectorServiceDecorator.java:114)  
at org.bonitasoft.engine.execution.work.ExecuteConnectorWork.work(ExecuteConnectorWork.java:138)  
at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:42)  
at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:42)  
at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:42)  
at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:42)  
at org.bonitasoft.engine.execution.work.FailureHandlingBonitaWork.work(FailureHandlingBonitaWork.java:66)  
at org.bonitasoft.engine.work.BonitaWork.run(BonitaWork.java:56)  
at org.bonitasoft.engine.work.SequenceRunnableExecutor.innerRun(SequenceRunnableExecutor.java:47)  
at org.bonitasoft.engine.work.BonitaRunnable.run(BonitaRunnable.java:35)  
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)  
at java.lang.Thread.run(Unknown Source)  
Caused by: org.bonitasoft.engine.connector.exception.SConnectorException: java.util.concurrent.ExecutionException: org.apache.chemistry.opencmis.commons.exceptions.CmisInvalidArgumentException: Media type must be set if a stream is present!  
at org.bonitasoft.engine.connector.impl.ConnectorExecutorImpl.execute(ConnectorExecutorImpl.java:125)  
at org.bonitasoft.engine.core.connector.impl.ConnectorServiceImpl.executeConnectorInClassloader(ConnectorServiceImpl.java:269)  
… 14 more  
Caused by: java.util.concurrent.ExecutionException: org.apache.chemistry.opencmis.commons.exceptions.CmisInvalidArgumentException: Media type must be set if a stream is present!  
at java.util.concurrent.FutureTask.report(Unknown Source)  
at java.util.concurrent.FutureTask.get(Unknown Source)  
at org.bonitasoft.engine.connector.impl.ConnectorExecutorImpl.getValue(ConnectorExecutorImpl.java:149)  
at org.bonitasoft.engine.connector.impl.ConnectorExecutorImpl.execute(ConnectorExecutorImpl.java:122)  
… 15 more  
Caused by: org.apache.chemistry.opencmis.commons.exceptions.CmisInvalidArgumentException: Media type must be set if a stream is present!  
at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AtomEntryWriter.(AtomEntryWriter.java:84)  
at org.apache.chemistry.opencmis.client.bindings.spi.atompub.ObjectServiceImpl.createDocument(ObjectServiceImpl.java:116)  
at org.apache.chemistry.opencmis.client.runtime.SessionImpl.createDocument(SessionImpl.java:1028)  
at org.apache.chemistry.opencmis.client.runtime.FolderImpl.createDocument(FolderImpl.java:75)  
at org.apache.chemistry.opencmis.client.runtime.FolderImpl.createDocument(FolderImpl.java:449)  
at org.bonitasoft.connectors.cmis.cmisclient.AbstractCmisClient.uploadNewDocument(AbstractCmisClient.java:186)  
at org.bonitasoft.connectors.cmis.UploadNewDocument.executeBusinessLogic(UploadNewDocument.java:59)  
at org.bonitasoft.engine.connector.AbstractConnector.execute(AbstractConnector.java:77)  
at org.bonitasoft.engine.core.connector.impl.SConnectorAdapter.execute(SConnectorAdapter.java:73)  
at org.bonitasoft.engine.connector.impl.ConnectorExecutorImpl$ExecuteConnectorCallable.call(ConnectorExecutorImpl.java:205)  
at org.bonitasoft.engine.connector.impl.ConnectorExecutorImpl$ExecuteConnectorCallable.call(ConnectorExecutorImpl.java:176)  
at java.util.concurrent.FutureTask.run(Unknown Source)  
… 3 more

---

<div class="post-metadata">

**Author:** ![Sean\_McP](https://dub1.discourse-cdn.com/flex013/user_avatar/community.ofelia.com/sean_mcp/32/932_2.png) [@Sean\_McP](https://community.ofelia.com/u/Sean_McP)\
**Post date:** [7 January 2017 17:52 UTC](https://community.ofelia.com/t/upload-docx-file-in-alfresco-folder-problem/8060/2 "2017-01-07T17:52:15Z")

</div>

If t works for all other document types and not _docx_ it sounds like a bug.

Please open a Bug Report here:

[https://bonita.atlassian.net](https://bonita.atlassian.net)

regards  
Seán

_PS: I realise this may not be the answer you are looking for but it’s the best we can do for this type of error on the community forum, please mark as resolved so others don’t have to reply._
