The `<tc:file/>` create an input field with a choose directory button on the right.

<tc:file label="Upload" value="\#{uploadController.file1}"/> For this demo the required attribute is set to false, for better playing around with is. You may activate it with the switch below.

You can filter files using the `<tc:validateFileItem/>` tag within the `<tc:file/>`. In the following example only images and PDF files are excepted. Max size is 1 MB

Define a text with `placeholder` attribute

The size can be changed with markup `large` or `small`.

You can upload multiple files in one selection and request. Use the `multiple="true"` attribute.

Ajax can be activated by adding `<f:ajax/>` to the `<tc:file/>` tag.