The Upload component is used as a form element and allows files to be uploaded to Tapestry. It can be freely mixed* with other components in a form.

The following form allows you to upload a file and see a hexadecimal dump of it.

File:
Options:
Display ASCII
bytes per line

* At this time, it will not work with the Palette or MultiplePropertySelection components properly (or any other component that can send multiple values with the form submission). In addition, the developer must manually set the containing form's enctype attribute to multipart/form-data.