10-24-2012 01:12 PM
<!– file upload dialog links –>
<@script type="text/javascript" src="${page.url.context}/res/components/upload/file-upload.js"></@script>
<@script type="text/javascript" src="${page.url.context}/res/components/upload/html-upload.js"></@script>
<@script type="text/javascript" src="${page.url.context}/res/components/upload/flash-upload.js"></@script>
onFileUpload: function PTL_onFileUpload(e, p_obj)
{
if (this.fileUpload === null)
{
this.fileUpload = Alfresco.getFileUploadInstance();
}
// Show uploader for multiple files
var multiUploadConfig =
{
siteId: this.siteid,
containerId: this.container,
uploadDirectory: this.path,
filter: [],
mode: this.fileUpload.MODE_MULTI_UPLOAD,
thumbnails: "doclib",
};
this.fileUpload.show(multiUploadConfig);
if (YAHOO.lang.isArray(p_obj) && p_obj[1].tooltip)
{
var balloon = Alfresco.util.createBalloon(this.fileUpload.uploader.id + "-dialog",
{
html: p_obj[1].tooltip,
width: "30em"
});
balloon.show();
this.fileUpload.uploader.widgets.panel.hideEvent.subscribe(function()
{
balloon.hide()
});
}
},
10-26-2012 01:15 PM
10-30-2012 01:32 PM
05-11-2015 03:27 AM
08-29-2014 07:19 AM
dnd-upload.js
and file-upload.js
but it still not working. And I get this javascript error No instance of uploader type 'Alfresco.DNDUpload' exists.
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.