I want to upload video in my struts 2 web application. For this I am using File upload interceptor . My problem is that, I am able to upload image and text fi
The maximumSize is per-file, configured globally OR per-Action
<interceptor-ref name="fileUpload">
<param name="maximumSize">10485760</param>
</interceptor-ref>
The default is 2097152 bytes (2 MB)
The multipart.maxSize
<constant name="struts.multipart.maxSize" value="100485760" />
is per-request, configured only globally;
The default is 2097152 bytes (2 MB) (source on File Upload Advanced Configuration)
Mixing this two parameters allows you to upload N files of maximumSize
MB each one in a single request, if they do not break the struts.multipart.maxSize
MB defined limit.
More info here