At first glance, the quickshare feature introduced with Alfresco 4.2 really seemed to address a long standing requirement for me. I have been asked more than once about how to share content publicly. A few days ago, I wanted to share a big file with another guy. I happily uploaded that file to our alfresco server, clicked the share button and checked the public page to make sure the other guy gets a chance to see and download the file.
Bummer ! Where is the download link ?
I was looking around in Share whether I missed a checkbox or something … no. I checked issues.alfresco.com and googled around – found I am not the only one missing that download link. Jeff Potts and another guy were asking about it months ago. I have to say I just do not understand the arguing of the Alfresco Cloud/Mobile support team why it should be as it is, so I “fixed” it myself. The file below provides a drop-in fix giving you the link. Assuming you have a standard Alfresco tomcat installation, just drop the file in tomcat/shared/lib
just unzip it in the alfresco directory, restart Share and enjoy sharing.
Update 05/21/2014 : You should get reasonable suggestions for the filename on all major browsers now.
Download Contentreich Quickshare Download Fix
Works perfectly, thank you so much!! I had the exact same reaction as you — why, with a system so intuitive as Alfresco seems to be, would they not include a download button? What good does it do to share a preview? Thanks again!
I think that the Alfresco team should add this as well as a setting for allowing the download to expire after X number of days in order to avoid possible unwanted leeching (if that’s what their concern is).
You made my day!
Excellent Job and great you share it. Works like charm.
Hi
Thanks for a great add-on. This missing feature almost sent me to Nuxeo.
Do I unzip this in the main installation folder: C:\Alfresco
Or into the C:\Alfresco\Tomcat folder.
Since the unzipped folder is called Tomcat, Windows wants to merge the contents with the preexising Tomcat folder, is this correct?
I don’t run windows, but I guess merge is what you want. The zip contains just one additional file needed on the filesystem.
Hi!
Good work!
But in my case the name of the downloaded file gets lost. :(
KLV09toHTjC55CmsKlImyQ
Is this the normal behavior?
Greeting!
Hallo Thorsten,
my quick-hack relies on the download attribute of the link. Seems browsers other than Chrome do not respect that.
Thank you for your answer.
I guess there isn’t a easy solution for that problem, or?
Regards,
Thorsten
Hi.
I actually used wget, via the Ubuntu Server command line, to get this link, and it worked just fine.
This should work:
wget -O quickdownload.zip https://www.contentreich.de/download/3970/
Well it would not be difficult to fix to work in all browsers. The only solution I saw required changes in the repository code. I did not want to go that far. I think Alfresco should do take care and do this.
Today I finally came up with the quick hack fix to you get decent download filenames on all browsers. Instructions and the patch file are updated.
Thanks for the update.
The last fix posted here went into this folder:
\tomcat\shared\classes\alfresco\web-extension\site-webscripts\org\alfresco\components\quickshare
Do I need to delete this one, and drop the new one into:
tomcat/shared/lib
Or do I keep them both?
Just drop the updated download file contentreich-quickshare-download.jar in tomcat/shared/classes. It has everything you need and supercedes the old file.
tomcat/shared/lib
or
tomcat/shared/classes?
You said lib, in the description above, and now classes in this comment?
The updated jar has a new repo tweak so you get proper download filenames suggested. That new jar goes in shared/lib.
I have the file currently in both folders (lib and classes) but it doesn’t appear to have made any difference.
Is there any reason you can think of for this?
Just tried it myself. I only dropped
contentreich-quickshare-download.jar
intomcat/shared/lib
of a fresh 5.0.b installation and it worked. Sorry no idea what’s going wrong in you r case. I would guess the system simply doe not pick on the extension code. Are you sure things are in the right place and the java process can actually read that file?Hi,
I have installed the jar on a 5.1.2 server, but it seems that it doesn’t work anymore. You will get the error:
An error has occured in the Share component: /share/service/components/quickshare/node-header.
It responded with a status of 500 – Internal Error.
Error Code Information: 500 – An error inside the HTTP server which prevented it from fulfilling the request.
Error Message: 02020002 Failed to process template org/alfresco/components/quickshare/node-header.get.html.ftl
Server: Alfresco Spring WebScripts – v6.8.0 schema 1,000
Is there new version of the quickshare applet?
Never seen this issue before. Just tried it on 201702-GA and it still works for me. All the error says is that there is a problem with the template. There may be more details in the logs.
I have same error that Chis on Alfresco 201707 / Alfresco Share v5.2.f
An error has occured in the Share component: /share/service/components/quickshare/node-header.
It responded with a status of 500 – Internal Error.
Error Code Information: 500 – An error inside the HTTP server which prevented it from fulfilling the request.
Error Message: 08270001 Failed to process template org/alfresco/components/quickshare/node-header.get.html.ftl
Server: Alfresco Spring WebScripts – v6.15.0 schema 1.000
Time: 27-sep-2019 18:55:29
Your request could not be processed at this time. Please contact your system administrator for further information.