Have ideas to improve npm?Join in the discussion! »

meanio-upload

1.0.3 • Public • Published

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

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...

<mean-upload file-dest="'/packages/files/'"
upload-callback="uploadFinished(files)"
upload-file-callback="uploadFileCallback(file)">
</mean-upload>
<div data-ng-repeat="img in images">
    <img data-ng-src="{{img.src}}" alt="">
</div>

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

Keywords

Install

npm i meanio-upload

DownloadsWeekly Downloads

1

Version

1.0.3

License

ISC

Last publish

Collaborators

  • avatar
  • avatar