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.
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 -->