Thanks to allowTypes, I only have a ban on downloading NOT files like "docx | xml | json". Is it possible to add somehow a mask, which in the dialog box will display only files of the type "docx | xml | json", and not all?
<p:fileUpload value="#{mainBean.uploadedFilesList}" allowTypes="/(\.|\/)(docx|xml|json)$/"/>