title: How do I limit the number of file upload in html?
body: <p>I want to limit user to select up to 6 files in the input tag. Currently, my input tag is like this:</p>
  
  <pre><code>&lt;input type="file" name="question_pic" id="id_question_pic" multiple/&gt;
  </code></pre>
  
  <p>I would like to limit user to select up to 6 files. I can return an error on the server side but I want client side to change it first.</p>
  
  <p>Is there a way to do that?</p>
  
  <p>Thanks.</p>