- Compatible with model driven validation (Reactive forms)
- tested on Angular Material Beta 12
- Implemented with Angular 4.4.x
For easier maintaining, I moved all sources on Plunker: SEE LIVE DEMO ON PLUNKER
Note: Getting the model value, returns an FileInput object (type FileInput)
@Lyror @kwalski you can convert File to array buffer using a FileReader object: https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsArrayBuffer