bergben / ng2-file-input

Angular 2 component that implements a drag and drop or select file selection, including preview.
MIT License
25 stars 11 forks source link

An example for input "accept" would be nice #20

Open cmglez10 opened 6 years ago

cmglez10 commented 6 years ago

I tried to use the input "accept" but I did not succeed.

<ng2-file-input [multiple]="false" [extensions]="['txt']" [show-previews]="true" [accept]="module.name+'.txt'"></ng2-file-input>

A little example in README file would be nice!