AnsweredAssumed Answered

Detecting https protocol in URL

Question asked by fkoenig on Feb 22, 2010
Latest reply on Feb 23, 2010 by mikeh
I'm setting up access to an Alfresco Share system through a firewall via an https proxy on an Apache server to allow access to Share to external collaborators.

As others, I encountered the problem that multiple file upload with Flash is not working (at least not with FF 3.6 and IE 8 on Windows Vista which I use) ( ).

One work-around that I found it to modify tomcat/webapps/share/components/upload/file-upload.js to force simple html upload and tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/upload/ to hide the tip concerning installing Flash.

This has the inconvenient that it blocks multiple uploads also for on-site users who are allowed to access Share in http and who will be in our case the main document contributors. I would like to detect the protocol of the current URL and use this information to selectively block multiple uploads. Is there an  attribute that I could use in the Javascript ?

Thanks for any help on this.