Locale

Language
English
English
English
French
German
German
Italian
Korean
Spanish
Catalan
Dutch
Portuguese
Portuguese
Arabic
Arabic
Bulgarian
Czech
Greek
Persian
Finnish
Danish
Hindi
Indonesian
Croatian
Japanese
Hungarian
Hebrew
Georgian
Central Kurdish
Khmer
Kyrgyz
Kazakh
Lithuanian
Latvian
Malay
Norwegian
Polish
Romanian
Russian
Slovak
Slovenian
Serbian
Swedish
Thai
Turkish
Ukrainian
Vietnamese
Chinese
Chinese

Input Style

Free Themes

Built-in component themes created by the PrimeFaces Theme Designer.

Saga Saga
Vela Vela
Arya Arya

Legacy Free Themes

Luna Amber Luna Amber
Luna Blue Luna Blue
Luna Green Luna Green
Luna Pink Luna Pink
Nova Nova
Nova Nova Alt
Nova Nova Accent

FileUpload Basic

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

Single
Choose
Single (allowTypes validation)
Choose
Multiple
Choose

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

<div class="card">
    <h5>Single</h5>
    <h:form enctype="multipart/form-data">
        <p:fileUpload value="#{fileUploadView.file}" mode="simple" skinSimple="true"/>

        <p:commandButton value="Submit" ajax="false" action="#{fileUploadView.upload}" styleClass="mt-3 ui-button-outlined block"/>
    </h:form>
</div>

<div class="card">
    <h5>Single (allowTypes validation)</h5>
    <h:form enctype="multipart/form-data">
        <p:fileUpload value="#{fileUploadView.file}" mode="simple" skinSimple="true">
            <p:validateFile allowTypes="/(\.|\/)(pdf)$/" />
        </p:fileUpload>

        <p:commandButton value="Submit" action="#{fileUploadView.upload}" styleClass="mt-3 ui-button-outlined block"
                         validateClient="false" process="@form" update="messages"/>

        <p:commandButton value="Submit (+ validateClient)" action="#{fileUploadView.upload}" styleClass="mt-3 ui-button-outlined block"
                         validateClient="true" process="@form" update="messages"/>
    </h:form>
</div>

<div class="card">
    <h5>Multiple</h5>
    <h:form enctype="multipart/form-data">
        <p:fileUpload value="#{fileUploadView.files}" mode="simple" skinSimple="true" multiple="true"/>
        <p:commandButton value="Submit" ajax="false" action="#{fileUploadView.uploadMultiple}" styleClass="mt-3 ui-button-outlined block"/>
    </h:form>
</div>