You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Bernhard Oberndorfer <be...@xpecto.com> on 2002/12/13 16:14:07 UTC

catch MaxLengthExceededException

Hello

I want to set a limit for uploaded files. So my struts-config.xml looks like
this:

<controller maxFileSize="1M" contentType="text/html" locale="true"/>


But howto do I recognize, that a file larger than 1M was uploaded.
Can I catch the MaxLengthExceededException or
can I overload CommonsMultipartRequestHandler to add some information to the
request!
Or is there already any information in the request.
Whats the best way to handle this?

Thanks

Bernhard Oberndorfer
xpecto AG
bernhard.oberndorfer@xpecto.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>