struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alireza Fattahi (JIRA)" <>
Subject [jira] [Created] (WW-4687) Struts 2 make fileUpload parameters dynamic
Date Thu, 08 Sep 2016 06:53:20 GMT
Alireza Fattahi created WW-4687:

             Summary: Struts 2 make fileUpload parameters dynamic
                 Key: WW-4687
             Project: Struts 2
          Issue Type: Improvement
            Reporter: Alireza Fattahi

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">
        <param name="allowedTypes">text/plain</param>
    	 <param name="allowedExtensions">txt</param> 
Is it possible to make these parameters dynamic !? For example 
    <param name="maximumSize">${maxsize}</param>	
and let the action set its max file size.

This message was sent by Atlassian JIRA

View raw message