The context work dir has to be the same as the temp dir, at least for Struts
using commons upload, for upload to work correctly on files bigger then
256K:
---struts-config.xml---
<controller
processorClass="org.apache.struts.tiles.TilesRequestProcessor">
<set-property property="nocache" value="true"/>
<!--
The tempDir property attribute value MUST match the workDir
value in the xxx.xml (XXX context file) file or file uploads
of over 256K will not work.
-->
<set-property property="tempDir" value="@TODO_REPLACE_TEMPDIR"/>
<set-property property="maxFileSize" value="10M"/>
</controller>
---xxx.xml---
<Context displayName="XXX Application @TODO_REPLACE_VERSION"
path="@TODO_REPLACE_PATH" crossContext="true"
docBase="@TODO_REPLACE_DOCBASE" workDir="@TODO_REPLACE_WORKDIR"
reloadable="false" debug="0" swallowOutput="true">
> -----Original Message-----
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker
> Sent: Thursday, February 16, 2006 10:58 PM
> To: [email protected]
> Subject: Re: Change Max Post Size
>
>
>
> "Diwan, Dronesh (Genworth, Contractor)"
> <[EMAIL PROTECTED]> wrote
> in message
> news:[EMAIL PROTECTED]
> > Any idea on how to change the maxPostSize in the Connector
> instead of
> > using the dafault values.
> >
> > I have problem in uploading files > 2 MB. I tried setting different
> > values as prescribed but it didn't work.
> > http://tomcat.apache.org/tomcat-5.5-doc/config/ajp.html
> >
>
> Changing maxPostSize won't do anything at all for file
> uploads. It is only
> used for processing html-form data. Your problem is coming
> from someplace
> else (e.g. bad setting being passed to commons-fileupload).
>
> >
> > Thanks
> > Dronesh
>
>
>
>
> ---------------------------------------------------------------------
> 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]