AnsweredAssumed Answered

Uploading files greater than 4MB fails while using DotCMIS API

Question asked by rita_aiyar on Jul 30, 2014
Latest reply on Mar 20, 2015 by asha_alex
Hi,

I am using the DotCMIS APIs to upload a document (Ifolder.CreateDocument). When i upload documents whose size is less than 4 MB, it works perfectly but for files greater than 4 MB it fails. I checked the following discussion https://forums.alfresco.com/forum/developer-discussions/alfresco-api/cannot-upload-file-larger-4mb-using-cmis-03212014-0923#comment-144932

When i tried to look for the repository.properties file, i found two. One was under tomcat/webapps/alfresco/WEB-INF/classes/alfresco and the other under tomcat/webapps/alfresco/WEB-INF/classes/alfresco/enterprise. The repository.properties file under tomcat/webapps/alfresco/WEB-INF/classes/alfresco had the 3 properties
webscripts.tempDirectoryName=WebScripts
webscripts.memoryThreshold=4194304
webscripts.setMaxContentSize=4294967296

As mentioned in the forum, I gave full permission to the temp folder and also created the WebScripts folder under temp/Alfresco. This however did not solve my problem. I am getting the following error in the alfresco.log file.

00:45:14,785 ERROR [org.springframework.extensions.webscripts.AbstractRuntime] [http-bio-443-exec-9] Exception from executeScript - redirecting to status template error: 06300255 Wrapped Exception (with status template): 06302159 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/cmis/children.post.atom.js': com.ctc.wstx.exc.WstxIOException: Invalid chunk header
org.springframework.extensions.webscripts.WebScriptException: 06300255 Wrapped Exception (with status template): 06302159 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/cmis/children.post.atom.js': com.ctc.wstx.exc.WstxIOException: Invalid chunk header


Any help will be appreciated. Our work is getting stuck because of this.

Regards,
Rita

Outcomes