dev@woodstock.java.net

Re: ? on upload filter init params

From: Ratnadeep Bhattacharjee <Ratnadeep.Bhattacharjee_at_Sun.COM>
Date: Wed, 24 Oct 2007 17:17:24 -0400

richard ratta wrote:
>
>
> Bob Yennaco wrote:
>
>>
>>
>> richard ratta wrote:
>>
>>> good question.
>>>
>>> I am always amazed how difficult it is to get certain information from
>>> a web app's servlet, even when in the servlet. I can't find any.
>>>
>>> The closest thing I can see is adding listeners that get called when
>>> filters
>>> and servlets are invoked.
>>>
>>> Can I ask why you need to know this ?
>>
>> issue #132.
>
> So you're gonna force me to waste another 5 minutes of my life waiting
> for java.net ;)
>
>> And so I figured the way to do this was in my validator - compare the
>> size of the file to be uploaded with "maxSize" as specified in the
>> filter. If it's too big, throw an exception.
>
> How can you find out the size of the file you want to upload ?
>

I thought the fileUpload component was supposed to do that and throw a
validation error.