Can someone help me with limiting file selection using ng-file-upload
in Angular.js? Here is my code:
<input
type="file"
class="filestyle form-control"
data-size="lg"
name="bannerimage"
id="bannerimage"
ng-model="file"
ngf-pattern="'image/*'"
accept="image/*"
ngf-max-size="2MB"
ngf-min-height="100"
ngf-resize="{width: 100, height: 100}"
custom-on-change="uploadFile"
required="required"
ngf-select="onFileSelect($file);"
ngf-multiple="true"
>
I have a scenario where multiple files can be selected, but I want to limit the selection to only 5 files. After that, the user should not be able to select any more files. Can anyone assist me with this requirement?