08-28-2014 05:38 AM
if (null == this.fileUpload) {
this.fileUpload = Alfresco.getFileUploadInstance();
}
var multiUploadConfig =
{
siteId: this.options.componentId,
containerId: this.options.componentId,
path: destination,
filter: [],
mode: this.fileUpload.MODE_MULTI_UPLOAD,
}
this.fileUpload.show(multiUploadConfig);
Uncaught Error: No instance of uploader type 'Alfresco.DNDUpload' exists.
.ftl
file of my dashlet I include this :
<@script type="text/javascript" src="${page.url.context}/res/components/upload/dnd-upload.js"></@script>
<@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>
09-05-2014 11:32 AM
<!– Uploaders –>
<component>
<region-id>html-upload</region-id>
<url>/components/upload/html-upload</url>
</component>
<component>
<region-id>flash-upload</region-id>
<url>/components/upload/flash-upload</url>
</component>
<component>
<region-id>file-upload</region-id>
<url>/components/upload/file-upload</url>
</component>
<component>
<region-id>dnd-upload</region-id>
<url>/components/upload/dnd-upload</url>
</component>
<component>
<region-id>archive-and-download</region-id>
<url>/components/download/archive</url>
</component>
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.