Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
In a struts 2 application ... we use `fileUpload` interceptor to get file from user.
The `fileUpload` has some configurations `maximumSize` , `allowedTypes` , `allowedExtensions` that can be used as:
<interceptor-ref name="fileUpload"> <paramame="maximumSize">200000</param> <param name="allowedTypes">text/plain</param> <param name="allowedExtensions">txt</param> </interceptor-ref>
Is it possible to make these parameters dynamic !? For example
<param name="maximumSize">${maxsize}</param>
and let the action set its max file size.