title: How to make a file field that only accept pdf and doc
body: <p>I need to accept only pdf and doc file using input type file.</p>
  
  <pre><code>&lt;input type="file" id="test" name="test" accept="application/msword,text/plain, application/pdf"/&gt;
  </code></pre>
  
  <p>This is working in windows, but in ubunthu, it only accept pdf file</p>