[richfaces-issues] [JBoss JIRA] (RF-12283) Provide better way to specify maxRequestSize in rich:fileUpload (per component, not globally)
Jan Papousek (JIRA)
jira-events at lists.jboss.org
Wed May 23 11:08:18 EDT 2012
Jan Papousek created RF-12283:
---------------------------------
Summary: Provide better way to specify maxRequestSize in rich:fileUpload (per component, not globally)
Key: RF-12283
URL: https://issues.jboss.org/browse/RF-12283
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: component-input
Affects Versions: 4.2.2.Final
Reporter: Jan Papousek
Now, when developer wants to specify size limit for uploaded files, he/she has to specify 'rg.richfaces.fileUpload.maxRequestSize' context parameter in web.xml:
{code}
<context-param>
<param-name>org.richfaces.fileUpload.maxRequestSize</param-name>
<param-value>100000</param-value>
</context-param>
{code}
It would be much better to provide an attribute (e.g. 'sizeLimit') for rich:fileUpload component. Why? Consider the following use cases:
- different size limit for text files and images
- different size limit depending on user's role
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list