FileUpload - Basic

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

Choose

<h:form enctype="multipart/form-data">
    <p:growl id="messages" showDetail="true" />
    
    <p:fileUpload value="#{fileUploadView.file}" mode="simple" skinSimple="true"/>
    
    <br /> <br />
    
    <p:commandButton value="Submit" ajax="false" action="#{fileUploadView.upload}" disabled="true" />
</h:form>