You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Glen Stampoultzis <gs...@iinet.net.au> on 2004/02/06 04:45:16 UTC
Problem with file size for upload component
I'm getting this error when I try and upload large files using the upload
component.
org.apache.tapestry.ApplicationRuntimeException
Unable to decode request: the request was rejected because it's size
exceeds allowed range
org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededException
the request was rejected because it's size exceeds allowed range
I didn't see any way to set the maximum upload size. Is there a way to fix
this?
Regards,
Glen Stampoultzis
gstamp@iinet.net.au
http://members.iinet.net.au/~gstamp/glen/
Re: Problem with file size for upload component
Posted by Glen Stampoultzis <gs...@iinet.net.au>.
Cool. There's a bit of tapestry I didn't know about.
I'll patch the documentation instead.
At 03:09 PM 6/02/2004, you wrote:
>I don't believe that is in error. You can adjust that default in your
>application specification. Unless you specifically override it, there
>probably should be a maximum size, correct?
>
><application name="Application">
> <extension name="org.apache.tapestry.multipart-decoder"
>class="org.apache.tapestry.multipart.DefaultMultipartDecoder">
> <configure property-name="maxSize" type="double"
>value="134217728"/> <!-- where the value is the maximum size you want
>to allow -->
> </extension>
>
> <page name="Home" specification-path="Home.page" />
></application>
>
>
>On Feb 5, 2004, at 11:00 PM, Glen Stampoultzis wrote:
>
>>
>>Digging a bit deeper it appears that the problem is line 104 of
>>DefaultMultipartDecoder that sets the maximum to 10000000 bytes:
>>
>>private int _maxSize = 10000000;
>>
>>It should be -1. I'll test and send through a patch.
>>
>>At 02:45 PM 6/02/2004, you wrote:
>>
>>>I'm getting this error when I try and upload large files using the
>>>upload component.
>>>
>>>
>>>org.apache.tapestry.ApplicationRuntimeException
>>>Unable to decode request: the request was rejected because it's size
>>>exceeds allowed range
>>>
>>>org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededExceptio n
>>>the request was rejected because it's size exceeds allowed range
>>>
>>>I didn't see any way to set the maximum upload size. Is there a way
>>>to fix this?
>>>
>>>Regards,
>>>
>>>
>>>Glen Stampoultzis
>>>gstamp@iinet.net.au
>>>http://members.iinet.net.au/~gstamp/glen/
>>
>>
>>Glen Stampoultzis
>>gstamp@iinet.net.au
>>http://members.iinet.net.au/~gstamp/glen/
Glen Stampoultzis
gstamp@iinet.net.au
http://members.iinet.net.au/~gstamp/glen/
Re: Problem with file size for upload component
Posted by SWC <ma...@crissman.net>.
I don't believe that is in error. You can adjust that default in your
application specification. Unless you specifically override it, there
probably should be a maximum size, correct?
<application name="Application">
<extension name="org.apache.tapestry.multipart-decoder"
class="org.apache.tapestry.multipart.DefaultMultipartDecoder">
<configure property-name="maxSize" type="double"
value="134217728"/> <!-- where the value is the maximum size you want
to allow -->
</extension>
<page name="Home" specification-path="Home.page" />
</application>
On Feb 5, 2004, at 11:00 PM, Glen Stampoultzis wrote:
>
> Digging a bit deeper it appears that the problem is line 104 of
> DefaultMultipartDecoder that sets the maximum to 10000000 bytes:
>
> private int _maxSize = 10000000;
>
> It should be -1. I'll test and send through a patch.
>
> At 02:45 PM 6/02/2004, you wrote:
>
>> I'm getting this error when I try and upload large files using the
>> upload component.
>>
>>
>> org.apache.tapestry.ApplicationRuntimeException
>> Unable to decode request: the request was rejected because it's size
>> exceeds allowed range
>>
>> org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededExceptio
>> n
>> the request was rejected because it's size exceeds allowed range
>>
>> I didn't see any way to set the maximum upload size. Is there a way
>> to fix this?
>>
>> Regards,
>>
>>
>> Glen Stampoultzis
>> gstamp@iinet.net.au
>> http://members.iinet.net.au/~gstamp/glen/
>
>
> Glen Stampoultzis
> gstamp@iinet.net.au
> http://members.iinet.net.au/~gstamp/glen/
Re: Problem with file size for upload component
Posted by Glen Stampoultzis <gs...@iinet.net.au>.
Digging a bit deeper it appears that the problem is line 104 of
DefaultMultipartDecoder that sets the maximum to 10000000 bytes:
private int _maxSize = 10000000;
It should be -1. I'll test and send through a patch.
At 02:45 PM 6/02/2004, you wrote:
>I'm getting this error when I try and upload large files using the upload
>component.
>
>
>org.apache.tapestry.ApplicationRuntimeException
>Unable to decode request: the request was rejected because it's size
>exceeds allowed range
>
>org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededException
>the request was rejected because it's size exceeds allowed range
>
>I didn't see any way to set the maximum upload size. Is there a way to
>fix this?
>
>Regards,
>
>
>Glen Stampoultzis
>gstamp@iinet.net.au
>http://members.iinet.net.au/~gstamp/glen/
Glen Stampoultzis
gstamp@iinet.net.au
http://members.iinet.net.au/~gstamp/glen/
Re: Problem with file size for upload component
Posted by Marilen Corciovei <le...@nemesisit.rdsnet.ro>.
I think what you need is:
DefaultMultipartDecoder.getSharedInstance().setMaxSize()
Len
On Fri, 2004-02-06 at 05:45, Glen Stampoultzis wrote:
> I'm getting this error when I try and upload large files using the upload
> component.
>
>
> org.apache.tapestry.ApplicationRuntimeException
> Unable to decode request: the request was rejected because it's size
> exceeds allowed range
>
> org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededException
> the request was rejected because it's size exceeds allowed range
>
> I didn't see any way to set the maximum upload size. Is there a way to fix
> this?
>
> Regards,
>
>
> Glen Stampoultzis
> gstamp@iinet.net.au
> http://members.iinet.net.au/~gstamp/glen/