FileUpload - Multiple

Multiple mode allows multiple files to be selected from the native file dialog. Note that legacy browsers do not support multiple selection.

Choose

Source

<h:form>

    <p:fileUpload fileUploadListener="#{fileUploadController.handleFileUpload}" mode="advanced" dragDropSupport="false"
                  multiple="true" update="messages" sizeLimit="100000" fileLimit="3" allowTypes="/(\.|\/)(gif|jpe?g|png)$/" />

    <p:growl id="messages" showDetail="true"/>

</h:form>