You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Lukasz Lenart (JIRA)" <ji...@apache.org> on 2016/09/12 04:38:20 UTC
[jira] [Updated] (WW-4687) Struts 2 make fileUpload parameters
dynamic
[ https://issues.apache.org/jira/browse/WW-4687?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lukasz Lenart updated WW-4687:
------------------------------
Fix Version/s: 2.5.x
> Struts 2 make fileUpload parameters dynamic
> -------------------------------------------
>
> Key: WW-4687
> URL: https://issues.apache.org/jira/browse/WW-4687
> Project: Struts 2
> Issue Type: Improvement
> Reporter: Alireza Fattahi
> Fix For: 2.5.x
>
>
> 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:
> {code}
> <interceptor-ref name="fileUpload">
> <paramame="maximumSize">200000</param>
> <param name="allowedTypes">text/plain</param>
> <param name="allowedExtensions">txt</param>
> </interceptor-ref>
> {code}
> Is it possible to make these parameters dynamic !? For example
> {code}
> <param name="maximumSize">${maxsize}</param>
> {code}
> and let the action set its max file size.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)