ng-file-input

Directives for allowing users to upload files


Keywords
angular, angular2, ng2, file, input, drag & drop
License
ISC
Install
npm install ng-file-input@0.2.0

Documentation

ng-file-input

Angular2 module for file input and dropping files.

This provides the following angular 2 components (in the more general sense of the word):

  1. file-input component: a wrapper around an html file input that fires a events when files are uploaded (with the File objects)
  2. fileDrop directive: A directive that fire events when files are dragged and dropped onto the attached component.
  3. FileFilter inteface and implementations: A way of specifying the types of files that are acceptable.

See the examples directory for examples of usage.

More documentation and examples coming.