I have one
struts 2.3 action which should be permitted to have very large file uploads and all of the other actions have a much smaller max file upload limit.
The first thing that I tried was adding the following to the action:
However, my 2 MB
test file was still rejected as being too large (the large number as a parameter is 500 MB).
The next thing that I tried was defining a completely new interceptor-stack like this:
I then switched the action to use this interceptor-stack:
However, my 2 MB test file was still rejected for being too large. The rejection was by Struts - not
tomcat or the web server. I get the following struts action error:
"Request exceeded allowed size limit! Max size allowed is: 2,097,152 but request was: 2,631,140!"
Does anyone see what I did wrong in the configuration? Or how I should configure struts to let one action upload large files?
Thanks!