title: jQuery Validate File Upload
body: <p>I am trying to validate a HTML file upload using jQuery Validate</p>
  
  <p>I found I can use the meta option like: </p>
  
  <pre><code>$("#myform").validate({
     meta: "validate"
  })
  
  &lt;input type="file" name="upload" class="{validate:{required:true,accept:'docx?|pdf'}}" /&gt;
  </code></pre>
  
  <p>But it does not appear to work. I need to add the <code>required</code> class anyways. Then the file type check will not work too of course. Do I need to do something additional?</p>