You can use the `accept` attribute on `<input type=file>` to limit the type of files that can be uploaded: ```html <input type="file" accept=".jpg,image/*" onchange="angular.element(this).scope().fileChosen(this.files[0])" /> ``` * [Mozilla dev/ MDN: limiting accepted file types](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#Limiting_accepted_file_types) Useful! N.
You can use the
acceptattribute on<input type=file>to limit the type of files that can be uploaded:Useful!
N.