Zoran Avtarovski wrote:

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

I found the Struts uploader stuff to be generally not acceptable but am happy with the commons uploader . Does that appeal to you? If so, I can address the same question in that milieux.

Michael McGrady


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



Reply via email to