title: How to limit to upload mulpltiple files using ng-file-upload in Angular.js
body: <p>I need one help.I need keep limit of selecting files using <code>ng-file-upload</code> in Angular.js.I am explaining my code below.</p>
  
  <pre><code>&lt;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"
  &gt;
  </code></pre>
  
  <p>Here i have multiple file selecting scenario but i need user can only select maximum 5 files after that it can not select any file.Please help me.</p>