title: PrimeFaces uploadFile, trying to upload multiple files and stopping at one
body: <p>So basically, I have a fileUploader that I want to do multiple files at a time.  When I click upload with 2 or more files, it runs the event handler once, and then stops, not running it again for the rest of the files, even though it shows them in queue on the page.      </p>
  
  <pre><code>        &lt;h:panelGroup&gt;                               
              &lt;h:panelGrid columns="3" &gt;
                  &lt;h:outputText value="Attach Files:"/&gt;
                  &lt;p:fileUpload allowTypes="/(\.|\/)(doc|docx|xls|xlsx|pdf)$/" mode="advanced" multiple="true" sizeLimit="30000000" auto="true" fileUploadListener="#{requestPart.handleFileUpload}" update="messages"/&gt;
                  &lt;p:messages id="mgs" showDetail="true"/&gt; 
              &lt;/h:panelGrid&gt;
          &lt;/h:panelGroup&gt;
  </code></pre>
  
  <p>My event handler code is as follows</p>
  
  <pre><code>private List&lt;UploadedFile&gt; uploadedFileList = new ArrayList&lt;UploadedFile&gt;();
  
  public void handleFileUpload(FileUploadEvent event) throws NotSupportedException, SystemException, SQLException
  {
  
      System.out.println("Uploading Request Part files....");
      UploadedFile file = event.getFile();
      uploadedFileList.add(file);
      FacesMessage msg = new FacesMessage("File attached successfully.", file.getFileName() + " is uploaded.");  
      FacesContext.getCurrentInstance().addMessage(null, msg);  
  
  }
  </code></pre>
  
  <p>Could anyone point me in the write direction?  As far as I know, the event is just one file at a time and never a list?</p>