Re: Upload file size limit

2004-11-03 Thread Andrew Hill
One technique would be overriding dispatchactions execute method in that action to check for this attribute and then delegating back to the superclass to handle the normal situation when its not found or calling the appropriate method when it is? ie: public ActionForward execute(ActionMapping m

Upload file size limit

2004-11-03 Thread Diego
Hi! I want to prevent the users from uploading files bigger than 1 MB, so I've put this on my struts-config: The problem is that, AFAIK, when the max file size is exceeded, the same Action which receives the file is invoked with this attribute in the request: MultipartRequestHandler.ATTRIBUTE_M