<?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 How to pass dynamic config parameter for File Uploader to select SINGLE_MODE or MULTI_MODE in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-pass-dynamic-config-parameter-for-file-uploader-to-select/m-p/10308#M4579</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="text-align: left; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal; font-weight: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; background-color: #ffffff; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;We are using Aikau framework to integrate to one of our intranet applications, where we have the option to upload files within a directory structure.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR style="text-align: left; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal; font-weight: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; background-color: #ffffff; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;" /&gt;&lt;SPAN style="text-align: left; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal; font-weight: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; background-color: #ffffff; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;The requirement is we want to switch between MODE_SINGLE_UPLOAD &amp;amp; MODE_MULTI_UPLOAD modes in File Uploader depending on the directory structure level the user is currently present in. File Uploader Dialog is shown on click on Upload button.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-align: left; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal; font-weight: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; background-color: #ffffff; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;On Click of Upload button "ALF_SHOW_UPLOADER" topic is published which is listened by "ContentService.js" in "Slingshot/source/web/js/alfresco/services/" directory. The possible solution I can think here is to pass a flag(for SINGLE &amp;amp; MULTI mode) with publish-payload while publishing to the "ALF_SHOW_UPLOADER" topic, based on which "ContentService.js" will pass the respective config from "showUploader: function" to finally call "show()" method to display File-Uploader with appropriate mode(SINGLE_FILE or MULTIPLE FILE).&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-align: left; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal; font-weight: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; background-color: #ffffff; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;I want to know if there is an option to override default "ContentService.js" file so that in "showUploader" function I can change the value for "mode" variable dynamically based on the passed flag while publishing to topic. If possible, I would like to know how I can override this file to make the required changes.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-align: left; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal; font-weight: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; background-color: #ffffff; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;I would also appreciate to have #any alternate approach/suggestion to implement this requirement.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Apr 2017 06:41:38 GMT</pubDate>
    <dc:creator>pritamthakur</dc:creator>
    <dc:date>2017-04-21T06:41:38Z</dc:date>
    <item>
      <title>How to pass dynamic config parameter for File Uploader to select SINGLE_MODE or MULTI_MODE</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-pass-dynamic-config-parameter-for-file-uploader-to-select/m-p/10308#M4579</link>
      <description>We are using Aikau framework to integrate to one of our intranet applications, where we have the option to upload files within a directory structure.&amp;nbsp;The requirement is we want to switch between MODE_SINGLE_UPLOAD &amp;amp; MODE_MULTI_UPLOAD modes in File Uploader depending on the directory structure le</description>
      <pubDate>Fri, 21 Apr 2017 06:41:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-pass-dynamic-config-parameter-for-file-uploader-to-select/m-p/10308#M4579</guid>
      <dc:creator>pritamthakur</dc:creator>
      <dc:date>2017-04-21T06:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass dynamic config parameter for File Uploader to select SINGLE_MODE or MULTI_MODE</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-pass-dynamic-config-parameter-for-file-uploader-to-select/m-p/10309#M4580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;Just to add that we are currently using Enterprise Alfresco v5.0.2 with Aikau 1.0.82, in case this information is helpful in suggesting the best way to override the JS file.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Apr 2017 11:29:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-pass-dynamic-config-parameter-for-file-uploader-to-select/m-p/10309#M4580</guid>
      <dc:creator>pritamthakur</dc:creator>
      <dc:date>2017-04-24T11:29:10Z</dc:date>
    </item>
  </channel>
</rss>

