<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Detecting https protocol in URL in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/detecting-https-protocol-in-url/m-p/214451#M167581</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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) ( &lt;/SPAN&gt;&lt;A href="http://forums.alfresco.com/en/viewtopic.php?f=47&amp;amp;t=23840&amp;amp;p=78012&amp;amp;hilit=upload+flash#p78012" rel="nofollow noopener noreferrer"&gt;http://forums.alfresco.com/en/viewtopic.php?f=47&amp;amp;t=23840&amp;amp;p=78012&amp;amp;hilit=upload+flash#p78012&lt;/A&gt;&lt;SPAN&gt; ).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;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/html-upload.get.properties to hide the tip concerning installing Flash.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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&amp;nbsp; attribute that I could use in the Javascript ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for any help on this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Feb 2010 11:28:34 GMT</pubDate>
    <dc:creator>fkoenig</dc:creator>
    <dc:date>2010-02-22T11:28:34Z</dc:date>
    <item>
      <title>Detecting https protocol in URL</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/detecting-https-protocol-in-url/m-p/214451#M167581</link>
      <description>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</description>
      <pubDate>Mon, 22 Feb 2010 11:28:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/detecting-https-protocol-in-url/m-p/214451#M167581</guid>
      <dc:creator>fkoenig</dc:creator>
      <dc:date>2010-02-22T11:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting https protocol in URL</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/detecting-https-protocol-in-url/m-p/214452#M167582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I found the solution: the attribute I was looking for is &lt;/SPAN&gt;&lt;STRONG&gt;window.parent.document.location.protocol&lt;/STRONG&gt;&lt;SPAN&gt; .&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- To use Flash multiple file upload only if the protocol is http , modify the file &lt;/SPAN&gt;&lt;STRONG&gt;tomcat/webapps/share/components/upload/file-upload.js&lt;/STRONG&gt;&lt;SPAN&gt; to replace (twice in the file: line 86 and line 219 (for Alfresco 3.1 and 3.2)): &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;if (this.hasRequiredFlashPlayer)&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;by:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt; if (this.hasRequiredFlashPlayer &amp;amp;&amp;amp; (window.parent.document.location.protocol == "http:"))&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;and (near line 223)&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.showConfig.uploadURL = this.showConfig.htmlUploadURL;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;by&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.showConfig.mode = this.MODE_SINGLE_UPLOAD;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.showConfig.uploadURL = this.showConfig.htmlUploadURL;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;To remove the tip about installing Flash, edit t&lt;/SPAN&gt;&lt;STRONG&gt;omcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/upload/html-upload.get.properties&lt;/STRONG&gt;&lt;SPAN&gt; and refresh the web scripts.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2010 11:36:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/detecting-https-protocol-in-url/m-p/214452#M167582</guid>
      <dc:creator>fkoenig</dc:creator>
      <dc:date>2010-02-23T11:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting https protocol in URL</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/detecting-https-protocol-in-url/m-p/214453#M167583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can shorten all that to just "location.protocol" as the browser populates the root namespace with window's top-level properties anyway (or "window.location.protocol" to be JSLint-friendly). There's often no point trying to use "window.parent" or "top." etc. because if you're framed, the browser will probably prevent you from requesting those properties.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for sharing your customisation!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2010 12:22:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/detecting-https-protocol-in-url/m-p/214453#M167583</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2010-02-23T12:22:10Z</dc:date>
    </item>
  </channel>
</rss>

