cancel
Showing results for 
Search instead for 
Did you mean: 

Flash Upload Disable not working

solanky
Champ in-the-making
Champ in-the-making
Hi,

I have recently installed alfresco 4.0.b on my windows machine. Everything is working fine except the flash upload. I have found that this is problem faced by a lot of persons so I try to disable flash upload using share-config-custom.xml file. Location of the file is C:\Alfresco-4.0.b-1\apache-tomcat\shared\classes\alfresco\web-extension . I have restarted the tomcat and even the computer but flash upload is still not disabled. Please let me know where I am wrong.  Could there be issues that tomcat is not reading this file as I have replaced localhost with 192.168.1.129 but that is also not working?

Content of share-config-custom.xml is as following -

<alfresco-config>
 
   <!– Repository Library config section –>
   <config evaluator="string-compare" condition="RepositoryLibrary" replace="true">
      <!–
         Whether the link to the Repository Library appears in the header component or not.
      –>
      <visible>true</visible>
   </config>

   <config evaluator="string-compare" condition="Remote">
      <remote>
         <endpoint>
            <id>alfresco-noauth</id>
            <name>Alfresco - unauthenticated access</name>
            <description>Access to Alfresco Repository WebScripts that do not require authentication</description>
            <connector-id>alfresco</connector-id>
            <endpoint-url>http://192.168.1.129:8080/alfresco/s</endpoint-url>
            <identity>none</identity>
         </endpoint>

         <endpoint>
            <id>alfresco</id>
            <name>Alfresco - user access</name>
            <description>Access to Alfresco Repository WebScripts that require user authentication</description>
            <connector-id>alfresco</connector-id>
            <endpoint-url>http://192.168.1.129:8080/alfresco/s</endpoint-url>
            <identity>user</identity>
         </endpoint>

         <endpoint>
            <id>alfresco-feed</id>
            <name>Alfresco Feed</name>
            <description>Alfresco Feed - supports basic HTTP authentication via the EndPointProxyServlet</description>
            <connector-id>http</connector-id>
            <endpoint-url>http://192.168.1.129:8080/alfresco/s</endpoint-url>
            <basic-auth>true</basic-auth>
            <identity>user</identity>
         </endpoint>
        
         <endpoint>
            <id>activiti-admin</id>
            <name>Activiti Admin UI - user access</name>
            <description>Access to Activiti Admin UI, that requires user authentication</description>
            <connector-id>activiti-admin-connector</connector-id>
            <endpoint-url>http://192.168.1.129:8080/alfresco/activiti-admin</endpoint-url>
            <identity>user</identity>
         </endpoint>
      </remote>
   </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>

4 REPLIES 4

erikwinlof
Confirmed Champ
Confirmed Champ
If neither of those configs work it sounds like your file isn't being read. Could there be another instance of that file on your server perhaps?
It shouldn't be, but that would explain why your file isn't being picked up. I.e. that there is a share-config-custom.xml elsewhere in the classpath and that its config is being picked up instead.

Cheers, Erik

solanky
Champ in-the-making
Champ in-the-making
Thanks Erik for help. I have searched for the file but could not find another instance of the same.

erikwinlof
Confirmed Champ
Confirmed Champ
Sounds strange, so what happens if you place the same file in the WEB-INF/classes inside Share's exploded war directory (inside the web apps folder)?
Does it work then?

Also out of interest, where did you get the following "repo link config" from?

<!– Repository Library config section –>
   <config evaluator="string-compare" condition="RepositoryLibrary" replace="true">
      <!–
         Whether the link to the Repository Library appears in the header component or not.
      –>
      <visible>true</visible>
   </config>

…this looks like old config, the repo link in a 4.0 server is governed by the <header> config…

<config>
    <header>
         <app-items>
            <!– defaults: icon="{id}.png" label="header.{id}.label" description="header.{id}.description" –>
            <item type="link" id="my-dashboard">{userdashboardpage}</item>
            <item type="js" id="sites">Alfresco.module.Sites</item>
            <item type="link" id="people">/people-finder</item>
            <item type="link" id="repository" condition="conditionRepositoryRootNode">/repository</item>
            …
        </app-items>
    </header>
<config>

Cheers and good luck, Erik

solanky
Champ in-the-making
Champ in-the-making
The issue is resolved. After Erik's response I check into tomcat error logs and found "Input stream invalid - skipped for source: classpath:alfresco/web-extension/share-config-custom.xml' " error. Then I looked in the file and found that that 'TM' in Adobe Flash™  was culprit Smiley Happy.