cancel
Showing results for 
Search instead for 
Did you mean: 

3.4b build 08-Oct-2010 - All file uploads fail

gman
Champ in-the-making
Champ in-the-making
Using the 3.4b build from 08-Oct-2010
Windows Server 2003 R2
Tomcat 7.0.2 Beta
Apache 2.2.11 using modjk connecting to Tomcat

When trying to use the file upload tool in a Share site document library, all uploads fail. This occurs regardless of user. I can add files through Alfresco Explorer, via webdav and Windows share via cifs.

I get one of the following Tomcat log entries when the upload fails:

POST /share/proxy/alfresco/api/upload;jsessionid=null HTTP/1.1" 401

POST /share/proxy/alfresco/api/upload;jsessionid=null HTTP/1.1" 404

Internet search yields the following:

http://issues.alfresco.com/jira/browse/ALF-4230?focusedCommentId=76359&page=com.atlassian.jira.plugi...
4 REPLIES 4

mikeh
Star Contributor
Star Contributor
We can't support Tomcat 7 and the Flash uploader at this time as Tomcat 7 has changed/removed the JSESSIONID cookie, which we need to pass to Flash as it can't get session info directly from the browser (unless it's MSIE). We've got an open bug with Adobe about this, which they've in turn handed off to the browser vendors.

Please see further info here: http://forums.alfresco.com/en/viewtopic.php?f=11&t=34975

You can completely disable the Flash uploader via config in v3.4 - see share-config-custom.xml.sample for details.

Thanks,
Mike

gman
Champ in-the-making
Champ in-the-making
I assume I rename share-config-custom.xml.sample to share-config-custom.xml and disable the Flash uploader. Once I do that, what do I need to do to load share-config-custom.xml.

mikeh
Star Contributor
Star Contributor
Copy the file to tomcat/shared/classes/alfresco/web-extension

As you're using Tomcat 7, make sure you've read the notes here: http://wiki.alfresco.com/wiki/Install_Tomcat6 (probably applies to 7 as well as 6)

Here's the bit of config you need:
<alfresco-config>

   <!– Document Library config section –>
   <config evaluator="string-compare" condition="DocumentLibrary" replace="true">

      <!–
         File upload configuration
      –>
      <file-upload>
         <!–
            Adobe Flash™
            In certain environments, an HTTP request originating from Flash cannot be authenticated using an existing session.
            See: http://bugs.adobe.com/jira/browse/FP-4830
            For these cases, it is useful to disable the Flash-based uploader for Share Document Libraries.
         –>
         <adobe-flash-enabled>false</adobe-flash-enabled>
      </file-upload>
   </config>

</alfresco-config>

Thanks,
Mike

gman
Champ in-the-making
Champ in-the-making
Thanks. The Flash uploader has been disabled and what looks like a DHTML uploader now works.