Monday, 22 August 2016

Get to know about how to switch back to flash uploader in Alfresco 5.0.x community versions

While uploading the content in the latest versions of Alfresco, you must have observed that, it always displays the file uploader different than it generally used to show in the earlier versions of Alfresco. Yes, That is correct. In the latest versions of Alfresco, it displays the dnd (drag-and-drop) uploader instead of the flash uploader in the earlier version.  Let me help you with the visuals so that it would be easy for you to understand what I am talking about, if you are new to Alfresco.
Following is the dnd uploader which you will find as the default uploader in latest Alfresco versions.
dnd uploader

Now, following is the flash uploader which used to be default uploader in the earlier versions of Alfresco.
flash-uploader

Now, what if you want to switch back to flash uploader as default? Here, I would be sharing my understanding, if you want explicitly switch back to flash upload then how you can do that in the latest 5.0.x Alfresco versions.

Kindly take a note that, flash uploader seemed to be deliberately changed from being the default uploader in Alfresco share as a part of Tomcat 7 security fixes. Hence, if you still want to make flash uploader as the default uploader for the newer versions of Alfresco as a part of your Alfresco implementation then you should take the above point into consideration before finalizing your decision.

Now, let's take a look how we can switch back to flash uploader in 5.0.x Alfresco Community versions.

1. In file-upload.js at the location tomcat\webapps\share\components\upload inside your Alfresco installed directory, the order is explicitly specified as dnd uploader, flash uploader and simple html uploader inside show: function FU_show(config)function using if-else conditions. Modify it to change the order as following.
              var uploadType;
      if (this.hasRequiredFlashPlayer)
      {
         uploadType = this.options.flashUploader;
      } else if (this.browserSupportsHTML5)
      {
         uploadType = this.options.dndUploader;
      } else
      {
         uploadType = this.options.htmlUploader;
      }
Also, make sure that the corresponding minified js is also updated with this change.
2. Also, modify context.xml file, located at tomcat\conf inside your alfresco installed directory.
            <Context useHttpOnly="false"> 
3. Restart alfresco server and test the file upload now. It should now show the flash uploader back if your browser has flash plugin installed. If it still shows the dnd upload, you may try clearing out browser cache and test again.
         
I hope this quick information will help you out if you are stretching your head to find out where has flash upload gone and how to get it back. Hope it helps.

Wednesday, 23 March 2016

Get to know the technology stack used by Alfresco...

While working on Alfresco, Have you ever wondered what are the different open source modules or underlying technologies used in Alfresco?

Everyone of us must be knowing about the technologies at a high-level such as spring, acitiviti, solr and so on. However, that is not the complete list of technology stack. There is more to it.

For your knowledge and reference, If you are interested to know the details on the underlying technologies and open source modules used by Alfresco then you can easily find about it from your Alfresco installation. Just navigate to the file called notice.txt at the location {Alfresco_installed_directory}\licenses folder and it lists out everything you should know. 

In my view, it seems to be the best place where all the information about technology stack used in Alfresco is collectively available at a single place. Hope you find this information useful.

Note : I used Alfresco Community 5.0.d as reference Alfresco version for this post as I am having it installed presently on my machine.

Monday, 29 February 2016

Just joined Order of The Bee...

It's 29-February today...It's a date which comes once in a 4 year...It's really a special day. Isn't it?...
On this special day, I would like to share that I have just joined Order of The Bee few days back and I am now a member of the Order of The Bee

Order of The Bee is an independent group of Alfresco professionals/experts/enthusiasts from the Alfresco community all across the globe, with the primary focus to promote Alfresco Community Edition and also aggregate the best from the community in order to help other community members, especially the developers working on Alfresco technologies.

Order of The Bee has members who have always been instrumental to help the Alfresco community in one or the other way, may it be blogs or books or tutorials or add-ons or answers in the forums or answers in IRC and so on...All these contributions really help a lot to anyone working on Alfresco.

Glad to be a part of OOTB team!!!