glassfish_at_javadesktop.org wrote:
> I made an JSF application that used the fileUpload widget.
>
> When I upload files bigger than 1 MB I get this message from the server:
>
> sourceId=form1:fileUpload1[severity=(INFO 0), summary=(The specified file exceeds the maximum allowable size of 1.000.000 Mb)
>
> I believe there is a minor bug in GF that causes it to count bytes instead of MBs (plus a typo in MB(Mb)).
>
> I guess, for now I can fix this problem by increasing the maximum file size to 1.000.000.000 MB. Where do I make this setting?
Are you using woodstock?
If so, set the following in web.xml:
<filter>
<filter-name>UploadFilter</filter-name>
<filter-class>com.sun.webui.jsf.util.UploadFilter</filter-class>
<init-param>
<param-name>maxSize</param-name>
<param-value>2097152</param-value>
</init-param>
</filter>
The value 2097152 is the maximum file size in bytes (= 2 MB).
Gerald