angular-drag-n-drop-directive
angular-drag-n-drop-directive copied to clipboard
How I can restrict the file extension?
trafficstars
Hello!
How I can restrict the file extension?
thanks. kind regards
you can use a accept="" attribute on the input.
Example limiting to PDF
<input type="file" accept="application/pdf" #fileDropRef id="fileDropRef" multiple (change)="fileBrowseHandler($event.target.files)" />