FileUpload - Auto

Upload process begins once the file is selected in auto mode.

Choose

Source

<h:form>

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

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

</h:form>