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.

Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

01 Apr 2019, 13:11

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

Post Reply

Return to “Extensions”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 11 guests