Components.xml is incorrect place to configure max request size.
You should add this param to Seam Filter in web.xml.
<filter> <filter-name>Seam Filter</filter-name> <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class> <init-param> <param-name>maxRequestSize</param-name> <param-value>10000000</param-value> </init-param> </filter>
Thanks, it works both in IE and Firefox.
just one more question that as you can see, i set the maxRequestSize in component.xml and it worked in firefox which displayed a error message if the uploaded document was larger than the maximun required file size. As you said, i set the maxRequestSize in wrong place, but why did it still work in firefox?
There are different behavior in FF & IE because Seam's multipart filter adjusted in your case to restrict request with length more then defined in components. xml. So filter skips the request and file uploading does not compete succesfully.
In result FF displays correct error message. IE does not by reason of bug in 3.2.1 GA. (Bug with IE)
So we recommend to upgrade your RF version to 3.2.2 after release or use 3.2.2-SNAPSHOT.
One remark: FF should display 'File size restricted' instead of 'Transfer error occurred' if filter was configured properly.
So behavior in FF was not right also.
Thanks. what about defining createTempFiles property? where do I define this attribute, in web.xml or componet.xml?
In web.xml also.