Files
ng2-file-upload/components/file-upload
Marvin Scharle db77e89235 fix(zone.js): error in Safari, Added Typings (#221)
* Changed tsconfig.json to match tsconfig schema

* Change package.json to include all necessary packages for this package

* Added type for EventEmitter

* Fix for zone.js error "More tasks executed then were scheduled" in Safari, explicit call of NgZone not required in zone.js ^0.6.12

* Added type information for methods in FileUploader

* Added type information for methods in FileItem

* Added type information for methods in FileUploader

* Removed codelyzer / eslint according to PR valor-software/ng2-file-upload#221
2016-06-02 16:17:25 +03:00
..

Usage

import {FileSelectDirective, FileDropDirective, FileUploader} from 'ng2-file-upload/ng2-file-upload';

Annotations

// class FileSelectDirective
@Directive({ selector: '[ng2FileSelect]' })
// class FileDropDirective
@Directive({ selector: '[ng2FileDrop]' })

FileSelect API

Properties

  • uploader - (FileUploader) - uploader object. See using in demo

Parameters that supported by this object:

  1. url - URL of File Uploader's route
  2. authToken - auth token that will be applied as 'Authorization' header during file send.

FileDrop API

Properties

  • uploader - (FileUploader) - uploader object. See using in demo

Events

  • fileOver - it fires during 'over' and 'out' events for Drop Area; returns boolean: true if file is over Drop Area, false in case of out. See using in ts demo and html demo