allowTypes of my p:fileUpload
don't work: I can upload any types of file...
What is missing or what is wrong?
Here's my page code:
<p:fileUpload
id="fileUpload"
value="#{tcnBean.file}"
mode="simple"
allowTypes="/(\.|\/)(pdf|doc?x)$/"
sizeLimit="100000"
update="messages"
required="true" />
Thanks!