Tobago Demo

Menu

File Upload

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

Tag Library Documentation

Basics

<tc:file label="Upload" value="#{uploadController.file1}"/>

Content type

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

Placeholder

Define a text with placeholder attribute

Markups

The size can be changed with markup large or small.

Multiple files

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

Ajax

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

Drop Zone

Drop Zone without Label

Drop Zone with Ajax

Uploaded Files

Name Type Size Used Action
No rows available
© 2005-2023 Apache Software Foundation, Licensed under the Apache License, Version 2.0.