j-Attachments
The component displays attachments in the simple list. A user can remove attachments.
A value be Array in the form:
[
{
name: 'attachment.docx',
url: 'url_to_download',
size: 1024, // in bytes
dtcreated: Date
}
]Use it with <ui-component name="attachments">. When the component is not loaded yet, jComponent downloads it on first use from the address in DEF.fallback (the Componentator CDN by default). Author: Peter Širka. Source: the Componentator components repository, MIT license.
<ui-component name="attachments" path="common.attachments"></ui-component>
<script>
var common = {};
common.attachments = [];
common.attachments.push({ name: 'logo.png', url: 'https://cdn.totaljs.com/logo.png', size: 5700, dtcreated: NOW });
</script>