By the way, why not put the check before the parse, if I read the code
correctly?
On 4/21/05, Tom Eugelink <[EMAIL PROTECTED]> wrote:
> Thanks Dakota,
>
> The solution was very simple:
>
> ...
>
> // we always want to be able to get the ID
> // so we do the filesize check ourselves
> int lRequestSize = request.getContentLength();
> lFileUpload.setSizeMax(lRequestSize);
>
> ...
>
> lFileItems = lFileUpload.parseRequest(request);
>
> ...
> //
> // manually check the size
> if (iMaxSize >= 0 && lRequestSize > iMaxSize)
> {
> response.sendRedirect(iOnError + "?id=" + lId);
> return;
> }
>
> Great help.
>
> Tom
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
"You can lead a horse to water but you cannot make it float on its back."
~Dakota Jack~
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]