How to limit number of files allowed to be uploaded using in JSF 2 + primefaces application. Attribute ‘filelimit’ was there in primeface 3.3 but I am using primefaces 3.4
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Looks like the fileLimit option has been removed in Issue 3618
As mentioned in the comments use a counter in the backing bean and either discard extra files or add a FacesMessage to notify the user that maximum fileLimit has been reached.
Code sample: