title: jQuery Validate MultIple File Upload
body: <p>I am trying to validate a HTML file upload using jQuery Validate plugin,</p>
  
  <p>My html form is,</p>
  
  <pre><code>&lt;form id="formid" action="welcome/test_up" method="post" enctype="multipart/form-data"&gt;
  &lt;input type="file" name="myfile[]" id="myfile" multiple&gt;
  &lt;input type="submit" name="submit" id="submit" value="submit"/&gt;
  </code></pre>
  
  <p>And I'm using Jquery validation plugin as,</p>
  
  <pre><code>$('#formid').validate({
      rules: { 
         inputimage: { required: true, accept: "png|jpe?g|gif"  }
      },
      messages: { inputimage: "File must be JPG, GIF or PNG" }
  });
  </code></pre>
  
  <p>But unfortunately it's not working,</p>
  
  <p>It's working if I use <code>name="myfile"</code> but not when I use <code>name="myfile[]"</code></p>
  
  <p>Any idea to solve this ?</p>