Many app servers also have a file upload size limit. For example, IIRC Tomcat 
has a 2M limit by default. [1] may also assist.

Dave

[1] http://struts.apache.org/2.x/docs/file-upload.html

--- On Fri, 8/29/08, Dario Novakovic <[EMAIL PROTECTED]> wrote:

> From: Dario Novakovic <[EMAIL PROTECTED]>
> Subject: uploadInterceptor - maximumSize ignored!?
> To: user@struts.apache.org
> Date: Friday, August 29, 2008, 10:29 AM
> Hello,
> 
> I created a file upload action and I need to uplaod big
> files
> 
> <action name="upload"
> class="action.UploadAction"
> method="doUpload">
>         <interceptor-ref
> name="fileUpload">104857600</interceptor-ref>
>         <interceptor-ref
> name="basicStack"/>
>         <result
> name="input">/input.jsp</result>
>         <result>/upload.jsp</result>
> </action>
> 
> but for some reason, i allways get message that the file is
> to big if it is bigger than 2MB. I did a bit of debugging
> and it showed that FileInterceptor#maximumSize property is
> correctly set but
> 
>         if (multiWrapper.hasErrors())
> 
> returns true even before maximumSize property is checked.
> 
> 
> I guess I have 2 fileUpload interceptors, default one where
> maximumSize is not overriden and mine. Can anyone explain
> what is going one and how to configure my action.
> 
> 
> Thanks!
> 
> 
>       
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to