The <tc:file/> create an input field with a choose directory button on the right.
<tc:file/>
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
<tc:validateFileItem/>
Define a text with placeholder attribute
placeholder
The size can be changed with markup large or small.
large
small
You can upload multiple files in one selection and request. Use the multiple="true" attribute.
multiple="true"
Ajax can be activated by adding <f:ajax/> to the <tc:file/> tag.
<f:ajax/>