p:fileUpload component is not limiting the files contained in allowTypes

Asked

Viewed 66 times

0

Component p:fileUpload is not limiting the files contained in allowTypes. Has anyone ever had this kind of problem?

<p:fileUpload id="certificado" mode="simple" dragDropSupport="false" multiple="false" update="msgValidacao" sizeLimit="10000" fileLimit="1" allowTypes="/(\.|\/)(pfx|p12)$/" skinSimple="true" value="#{companyBean.fileCertificate}" />
  • 1

    Ola Jeremias, in mode simple does not work, only Advanced, size limit also does not work in this mode.

  • Excellent. I was with this suspicion but did not see in the documentation reporting such. Thank you.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.