Hello Michael,

how do you configure fileupload in tobago?
I assume the Filter.

The prefered option is tobago-fileupload.jar. This jar generates the error messages inside the faces lifecycle.
The filter throws an exception outside the faces lifecycle.
Both filter or jar have a hard limit (See configuration options in faq).

With the validator you can configure some other validation after the file is downloaded.

Regards

Bernd

Michał 'Gandalf' Stawicki wrote:
Hello,

When I try to upload too large file, I simply get an exception. Am I
missing something? I would like to stay on the same page / get some
validation error. On my JSP I have:

<tc:file
value="#{clientManagedBean.newOrderControler.attachmentsController.fileItem}"
tip="Wprowadź nazwe pliku"
id="fileAddBrowse">

<tc:validateFileItem maxSize="10485760" />

</tc:file>

regards,
michael

Reply via email to