Max number of file in Fileupload Primefaces

Community Driven Extensions Project
Post Reply
Wilma64
Posts: 1
Joined: 30 Mar 2019, 09:07

30 Mar 2019, 09:11

I set my FileUpload component with this params:

Code: Select all

 <p:fileUpload label="Select image"  
                    mode="advanced"  
                    update="messages"  
                    fileUploadListener="#{fileUploadController.handleFileUpload}"
                    sizeLimit="1000000"   
                    fileLimit="1"
                    fileLimitMessage="Only 1 image"
                    allowTypes="/(\.|\/)(gif|jpe?g|png)$/"/> 

  <p:growl id="messages" showDetail="true"/>  
But if i select more image i don't get any error or warning.

krogerfeedback
Last edited by Wilma64 on 02 Apr 2019, 09:46, edited 1 time in total.

User avatar
Melloware
Posts: 1182
Joined: 22 Apr 2013, 15:48

01 Apr 2019, 13:11

Wrong forum. You want this one: viewforum.php?f=3
PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 7.0.4 / PF Extensions 7.0.1

Post Reply

Return to “Extensions”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests