title: HTML limit files selected when the user tries to upload
body: <pre><code>&lt;input type='file' id="uploadImg" name="image[]" accept="image/jpeg" multiple="multiple"/&gt;
  </code></pre>
  
  <p>I have an input file multiple, I want to limit max-10 files. Is any way to limit user can only select 10 files when their upload window pop? </p>
  
  <p>(I'm not asking about detecting and giving alert, I'm asking about limit files a user can select.)</p>
  
  <p>Maybe something like <code>&lt;input type='file' limit='10' /&gt;</code>?</p>