FileUpload: Maximum Number of Files Exceeded Issue

UI Components for JSF
Post Reply
AamirHu
Posts: 2
Joined: 09 Apr 2015, 10:41

09 Apr 2015, 10:53

Hi all,

I am facing this strange issue in FileUpload component PrimeFaces 5.1 where on browsing the file I receive this error message -

Maximum number of files exceeded.
  • This is a single file upload since I have already set upload fileLimit = 1.

    This issue is not always replicable, sometimes it does and other times it works perfectly fine - no error. I am not able to identify any pattern of replication yet.

    The issue resolves if I refresh the page (hit F5) and then try to browse same file.
Here is the code I am using -

Code: Select all

<!--Start of File Upload -->	

<p:fileUpload id="massUploadComplete" fileUploadListener="#{massUpload.handleFileUpload}" label="Browse" mode="advanced" dragDropSupport="false" onstart="PF('statusDialog').show()" oncomplete="PF('statusDialog').hide()" update="massUploadComplete,messages" sizeLimit="5500000000" fileLimit="1" allowTypes="/(\.|\/)(xls|xlsx)$/"/>

<!--End of File Upload -->
Please suggest solution to this issue. Many thanks :)

AamirHu
Posts: 2
Joined: 09 Apr 2015, 10:41

17 Apr 2015, 09:35

Anyone? :(

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 35 guests