Here is some useful information for Alfresco4.2.x customizers.
Normally for uploading a custom type of content (from flash-upload dialog in alfresco share), what we did till now was
making the entry of custom content type in flash-upload.get.js file and
the custom content started appearing in flash-upload dialog.
But in Alfresco4.2.x, to make the flash-uploader work with custom content type, we need to do the following :
1) Make the appropriate entry of custom content type in flash-upload.get.js file in your extension environment.
2) Edit the tomcat/conf/context.xml file.
Add the change in context element as follows:
<Context useHttpOnly="false"> in place of <Context>
3) Restart the server.
This is done in order to re-enable the flash uploader.
Courtesy :
http://wiki.alfresco.com/wiki/Alfresco_Community_4.2.b_Release_Notes
Normally for uploading a custom type of content (from flash-upload dialog in alfresco share), what we did till now was
making the entry of custom content type in flash-upload.get.js file and
the custom content started appearing in flash-upload dialog.
But in Alfresco4.2.x, to make the flash-uploader work with custom content type, we need to do the following :
1) Make the appropriate entry of custom content type in flash-upload.get.js file in your extension environment.
2) Edit the tomcat/conf/context.xml file.
Add the change in context element as follows:
<Context useHttpOnly="false"> in place of <Context>
3) Restart the server.
This is done in order to re-enable the flash uploader.
Courtesy :
http://wiki.alfresco.com/wiki/Alfresco_Community_4.2.b_Release_Notes
gr8..!!
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteHi, I have installed Alfresco 4.2c make changes, but I did not work
ReplyDeletein contex.xml, to use flash-upload
Context useHttpOnly="false"
In flash-upload.get.ftl
function getContentTypes()
{
// TODO: Data webscript call to return list of available types
var contentTypes = [
{
id: "cm:content",
value: "cm_content"
},
{
id : "ca:factura",
value : "cm_content"
}];
return contentTypes;
}
But the selection dialog never appears, on the other hand the file is uploaded without asking for confirmation.
This comment has been removed by the author.
ReplyDeleteCan you try the below points one by one ?
ReplyDelete-----------------------------------------------------------------------------------------------------------------
1) The entry of contentTypes should be in the file name - flash-upload.get.js and not in flash-upload.get.ftl
Location of the file in extension environment -> tomcat\shared\classes\alfresco\web-extension\site-webscripts\org\alfresco\components\upload\flash-upload.get.js
-----------------------------------------------------------------------------------------------------------------
2)
The entry should be
id : "ca:factura",
value : "ca_factura"
instead of :
id : "ca:factura",
value : "cm_content"
-----------------------------------------------------------------------------------------------------------------
3) Make sure, you made this change in your context.xml file (at tomcat\conf\context.xml)
Context useHttpOnly="false"
-----------------------------------------------------------------------------------------------------------------
4) Also, make sure, your browser has adobe flash plugin installed.
-----------------------------------------------------------------------------------------------------------------
5) Clear your browser cookies and cache. Then relogin to alfresco and check the flash-upload dialog