title: Validating array file input
body: <p>How can I validate an array of file <code>input</code> with <code>jquery.validate</code> plugin?</p>
  
  <p>The code works fine with single file, but not with multiple upload, where <code>name=""</code> is an array. </p>
  
  <p><strong>jQ:</strong></p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      $(document).ready(function(){
          $("#Main").validate({
              rules: {
                  pic: { required:true, accept: "jpg|jpeg" }
              }}
          );
      });
  &lt;/script&gt;
  </code></pre>
  
  <p><strong>Single upload:</strong></p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
      &lt;/head&gt;
      &lt;body&gt;
          ...
          &lt;td&gt;Fotografija 1:&lt;/td&gt;
          &lt;td&gt; &lt;input type="file" class="fup" name="pic" /&gt; &lt;/td&gt;
          ...
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><strong>Multiple upload</strong></p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
      &lt;/head&gt;
      &lt;body&gt;
          ...
              &lt;td&gt;Fotografija 1:&lt;/td&gt;
              &lt;td&gt; &lt;input type="file" class="fup" name="pic[]" /&gt; &lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;Fotografija 2:&lt;/td&gt;
              &lt;td&gt; &lt;input type="file" class="fup" name="pic[]" /&gt; &lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;Fotografija 3:&lt;/td&gt;
              &lt;td&gt; &lt;input type="file" class="fup" name="pic[]" /&gt; &lt;/td&gt;
          ...
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>