https://github.com/gbevan/upload
fork of https://git.mean.io/orit/upload.git
https://github.com/gbevan/upload
Last synced: 8 months ago
JSON representation
fork of https://git.mean.io/orit/upload.git
- Host: GitHub
- URL: https://github.com/gbevan/upload
- Owner: gbevan
- Created: 2016-05-20T14:20:04.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-10-11T16:20:13.000Z (over 8 years ago)
- Last Synced: 2025-03-14T02:14:37.414Z (over 1 year ago)
- Language: JavaScript
- Size: 561 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Mean-upload lets you upload multiple files to your mean.io based app and use them.
The package provides a directive called mean-upload which renders the file picker.
### Installation
In the root of your meanio site, run:
```
mean install upload
```
#### gbevan fork
```
mkdir packages/contrib
cd packages/contrib
git clone https://github.com/gbevan/upload.git
cd upload
npm install
```
### Callbacks
The package provides two callbacks:
- uploadFileCallback: Fires when each file is successfuly uploaded
- uploadFinished: Fires once All of the files have been uploaded.
### Usage
To use it just integrate the folowing directive in to your angular view...
```HTML
```
### Directive attributes
file-dest = Default destination on server to upload the files to
upload-callback = Default name of all files uploaded callback
upload-file-callback = Default name for each file upload completion