Files
ng2-file-upload/components/file-upload
Jose Berrocal 8d8af73fb0 Add the possibility of stablish the token header
It will be very useful set which is the Token that is going to be send to the server
2016-05-20 12:01:29 -06:00
..
2016-05-12 15:50:50 +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