FileUpload - Simple

Simple uploader uses native browser file upload. Simple uploader is disabled at online demo.



Source

<h:form enctype="multipart/form-data">

    <p:messages showDetail="true"/>

    <p:fileUpload value="#{fileUploadController.file}" mode="simple"/>

    <p:commandButton value="Submit" ajax="false"
                actionListener="#{fileUploadController.upload}"/>

</h:form>