I want to upload doc or docx file using primefaces fileUpload,although I specify the type of file it display Invalid file type
<p:fileUpload cancelLabel="#{contenu.annuler}"
fileUploadListener="#{utilAdminBean.fileUpload}"
allowTypes="/(\.|\/)(doc|docx)$/"
multiple="false" mode="advanced" sizeLimit="52428800"
showButtons="false" />
allowTypes
like this:allowTypes="/(\.|\/)(doc?x)$/"
but this is not relevant for this to work. but with 3.5 and 4.0 it works for me. – Energy