I\'m having two problems when trying to configure the Struts 2 File Upload Interceptor in my application. I want to change the parameter maximumSize
(the default va
Finally solved the entire puzzle! struts.xml
and MessageResource.properties
were correctly configured. The problem was struts.multipart.maxSize
value. This value have to be bigger than the desired upload limit (5242880 in my app), so I set it as 10000000. If struts.multipart.maxSize
value is equal or less then fileUpload.maximumSize
the library used by Struts 2 to do the upload stops the upload process (and writes the error message) before the file upload interceptor has a chance to do its job.