[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
Thu May 24 07:26:19 EDT 2012


    [ https://issues.jboss.org/browse/RF-12283?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12695466#comment-12695466 ] 

Jan Papousek commented on RF-12283:
-----------------------------------

Another possible solution (worse I think) is to allow EL in org.richfaces.fileUpload.maxRequestSize context parameter (now it's parsed as Long). This kind of solution is similar to skinning via org.richfaces.skin context (here is example of usage in Metamer: https://github.com/richfaces/qa/blob/master/metamer/application/src/main/webapp/WEB-INF/web.xml#L52).
                
> 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: Feature Request
>      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