Whenever I upload file with size more than 2MB, it will result on HTTP 500 error page. I found out that Struts 2 default maximum size for file upload is 2MB.So i set the struts.multipart.maxSize to the maximum size that i want..and also define this in my stack
<interceptor-ref name="fileUpload"> 5242880 </interceptor-ref> it works in setting the maximum size according to our needs...but if we upload file more than the maximum size,it will still show the HTTP 500 page..how can i customize it to redirect to previous page n show my own error msg..like "Failed to Upload" I've tried to extend the FileUploadInterceptor class and override the method acceptFile,but when we upload file exceeding the maximum size,it will never get to my new method..been cracking my brain on this 1 for 4 days already %-| ,hopefully someone have the answer.. -- View this message in context: http://www.nabble.com/Struts-2-override-FileUploadInterceptor-tp21492152p21492152.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org