<?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 Re: FileUpload, customised header? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/fileupload-customised-header/m-p/292959#M246089</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the reply. I noticed by changing the properties file will have a global effect which is not quite the thing I want to do.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to dynamically set the header in the javacript file individually, i.e. in the code above calling the FileUpload so that different headers can be display in different places.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Apr 2014 08:21:05 GMT</pubDate>
    <dc:creator>sunquanbin</dc:creator>
    <dc:date>2014-04-30T08:21:05Z</dc:date>
    <item>
      <title>FileUpload, customised header?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/fileupload-customised-header/m-p/292957#M246087</link>
      <description>Hi,Can I ask how to provide a customised header to the default share FileUpload. By the default share FileUpload, I mean this one:&amp;nbsp;&amp;nbsp;&amp;nbsp;var uploader = Alfresco.getFileUploadInstance();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var uploadConfig = {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; siteId: {string}, // site to upload file(s) to &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; containerId: {string}, /</description>
      <pubDate>Tue, 29 Apr 2014 14:16:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/fileupload-customised-header/m-p/292957#M246087</guid>
      <dc:creator>sunquanbin</dc:creator>
      <dc:date>2014-04-29T14:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: FileUpload, customised header?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/fileupload-customised-header/m-p/292958#M246088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The default header text appears from \tomcat\webapps\share\WEB-INF\classes\alfresco\site-webscripts\org\alfresco\components\upload\flash-upload.get.properties and flash-upload.get_en.properties&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;header.singleUpload=Upload File&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;header.multiUpload=Upload File(s)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can modify the text as you required to display the out-of-the-box flash-upload component with your custom header text.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 16:34:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/fileupload-customised-header/m-p/292958#M246088</guid>
      <dc:creator>romschn</dc:creator>
      <dc:date>2014-04-29T16:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: FileUpload, customised header?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/fileupload-customised-header/m-p/292959#M246089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the reply. I noticed by changing the properties file will have a global effect which is not quite the thing I want to do.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to dynamically set the header in the javacript file individually, i.e. in the code above calling the FileUpload so that different headers can be display in different places.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2014 08:21:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/fileupload-customised-header/m-p/292959#M246089</guid>
      <dc:creator>sunquanbin</dc:creator>
      <dc:date>2014-04-30T08:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: FileUpload, customised header?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/fileupload-customised-header/m-p/292960#M246090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Okay got your point.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There is one way to achieve this by implementing as following.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. While you are getting instance of Uploader, currently it takes the kind of upload from mode attribute.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Customize flash-upload.js and define your custom modes. e.g. MODE_IMAGE_UPLOAD_SINGLE etc same way as existing MODE_SINGLE_UPLOAD etc are defined at code section under below "YAHOO.extend(Alfresco.FlashUpload, Alfresco.component.Base,"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Then under&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _applyConfig: function FlashUpload__applyConfig(), pickup the property value based on the selected mode. Currently it takes the prpoerty values i mentioned earlier based on the value of MODE_SINGLE_UPLOAD etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please try this and see if it works for you or not. Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2014 09:09:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/fileupload-customised-header/m-p/292960#M246090</guid>
      <dc:creator>romschn</dc:creator>
      <dc:date>2014-04-30T09:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: FileUpload, customised header?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/fileupload-customised-header/m-p/292961#M246091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Many thanks for the suggestion. But I consider this seems an overkill for my purpose plus I don't want to overwrite the existing system files. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Actually, this can be achieved by modifying the relevant field in the uploader object after show(config).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;uploader.show(uploadConfig);&lt;BR /&gt;uploader.uploader.titleText.textContent = "Custom Title";&lt;BR /&gt;&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;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I originally thought this can be achieved via the config or some simple setter method. But now it seems that direct hack is the most convenient way. Thanks for the reply anyway.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sun&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2014 09:40:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/fileupload-customised-header/m-p/292961#M246091</guid>
      <dc:creator>sunquanbin</dc:creator>
      <dc:date>2014-04-30T09:40:56Z</dc:date>
    </item>
  </channel>
</rss>

