You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Zoran Avtarovski <zo...@conads.com> on 2004/09/24 10:58:42 UTC
Re: File Upload Limits [SOLVED]
I was using the FileUpload example as a starting point and I left the
inputForward="true" in my struts-config controller element. When I removed
it all worked file, but for now I'm happy it's working.
I'll have to have a look later at what exactly the inputForward="true"
attribute does.
But thanks to all for their replies.
Z.
> I'm trying to find some detailed information on how to use the file size
> limits using the struts MultipartRequestHandler. In the past I have used a
> custom servlet, but I thought it was time to bring this into the struts
> world.
>
> Before anybody says anything, I tried to search the list archive but it says
> it can't be searched.
>
> So anyway I looked at the fileupload example, and have done the following:
>
> Added the controller element
> <controller maxFileSize="2M" inputForward="true" />
>
> To my struts-config and in my UploadForm validate action I check the boolean
> request.getAttribute(MultipartRequestHandler.ATTRIBUTE_MAX_LENGTH_EXCEEDED);
>
> I take it from this that the requesthandler sets a boolean value in the
> request if the file is greater in size than specified in the controller
> element.
>
> The problem is that this isn't working.
>
> Any help would be appreciated.
>
> Zoran
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org