title: primefaces fileupload invalid file type doc, docx
body: <p>I want to upload doc or docx file using primefaces fileUpload,although I specify the type of file it display 
  <strong>Invalid file type</strong></p>
  
  <p><img src="https://i.stack.imgur.com/SyBEU.png" alt="enter image description here"></p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;p:fileUpload cancelLabel="#{contenu.annuler}"
      fileUploadListener="#{utilAdminBean.fileUpload}"
      allowTypes="/(\.|\/)(doc|docx)$/"
      multiple="false" mode="advanced" sizeLimit="52428800"
      showButtons="false" /&gt;
  </code></pre>