You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by bo...@apache.org on 2010/09/28 19:38:39 UTC
svn commit: r1002286 -
/myfaces/tobago/trunk/tobago-example/tobago-example-addressbook/src/main/webapp/WEB-INF/web.xml
Author: bommel
Date: Tue Sep 28 17:38:38 2010
New Revision: 1002286
URL: http://svn.apache.org/viewvc?rev=1002286&view=rev
Log:
added example for setting fileupload size
Modified:
myfaces/tobago/trunk/tobago-example/tobago-example-addressbook/src/main/webapp/WEB-INF/web.xml
Modified: myfaces/tobago/trunk/tobago-example/tobago-example-addressbook/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-addressbook/src/main/webapp/WEB-INF/web.xml?rev=1002286&r1=1002285&r2=1002286&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-addressbook/src/main/webapp/WEB-INF/web.xml (original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-addressbook/src/main/webapp/WEB-INF/web.xml Tue Sep 28 17:38:38 2010
@@ -153,4 +153,17 @@
<role-name>addressbook-user</role-name>
</security-role>
+ <env-entry>
+ <description>
+ Set the size limit for uploaded files. Default value is 1 MB.
+ Format: 10 = 10 bytes
+ 10k = 10 KB
+ 10m = 10 MB
+ 1g = 1 GB
+ </description>
+ <env-entry-name>uploadMaxFileSize</env-entry-name>
+ <env-entry-type>java.lang.String</env-entry-type>
+ <env-entry-value>1m</env-entry-value>
+ </env-entry>
+
</web-app>