title: Primefaces 5.2 fileupload - fileUploadListener not being called for some files if multiple files are being uploaded at the same time
body: <p>I have implemented fileupload using Primefaces 5.2 in my application. Currently some of my users are experiencing an issue when they try to upload many files at the same time; some of the files will not get uploaded (i.e. 2 out of 62 files not uploaded).</p>
  
  <p>This is the code for the fileupload:</p>
  
  <pre><code>&lt;p:fileUpload mode="advanced" multiple="true" update="uploadStatus" label="#{msg['config-selsam']}" allowTypes="/(\.|\/)(CEL)$/" fileUploadListener="#{gexAffyBean.inputFile.multipleFileUploadListener}"&gt;
  &lt;/p:fileUpload&gt;
  </code></pre>
  
  <p>This is the bean code:</p>
  
  <pre><code>public void multipleFileUploadListener(FileUploadEvent event) {
      System.out.println("Upload fileCount"); // Added for debug
      fileList.put(++fileCount, fileUploadListener(event));
  }
  </code></pre>
  
  <p>In the case simulated, I can see that the multipleFileUploadListener method is being called 60 times even though 62 files are uploaded.</p>
  
  <p>Has anyone encountered this issue before?
  This issue happened randomly, and from my observation, this issue tend to happen when the user has a slow internet connection.</p>
  
  <p>Thanks in advance for any advice or insight that you can share.</p>