mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
18 lines
727 B
Markdown
Executable File
18 lines
727 B
Markdown
Executable File
# Introduction
|
|
This repository contains an element for file uploads using ajax. It supports multi-file selection as well as optional drop zones for drag-and-drop. The element is designed for use in Polymer 1.0.
|
|
|
|
Check out the demo and docs here: https://winhowes.github.io/file-upload/components/file-upload/.
|
|
|
|
# Installation
|
|
To install simply run:
|
|
```
|
|
bower install --save file-upload
|
|
```
|
|
|
|
# publish-subscribe functionality
|
|
Add the code below to the main index.html in order to publish an event when a file is uploaded. This event is used by the others components to refresh or make action.
|
|
|
|
<template is="dom-bind" id="alfresco-app">
|
|
<iron-signals on-iron-signal-uploaded="uploadedSignal"></iron-signals>
|
|
</template>
|
|
``` |