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

add default palceholder picture for non image types #30

Open hosseinjalili opened 6 years ago

hosseinjalili commented 6 years ago

hi

please add an ability to add a json file for non image file picture placeholder like .pdf. for example: <ng2-file-input (onAction)="fileChange($event)" [typePlaceHolder]="{'.pdf':data:image/png;base64,iVBORw0KGg}" extensions="['jpeg','png','jpg','pdf']">

then base64 image place on src img tag attribute and show that image and title beside each other.

regards