-
1. Re: rich:fileUpload doesnt behave correctly when the uploade
andrei_exadel Aug 5, 2008 10:09 AM (in response to xiaotao183)Hi,
Components.xml is incorrect place to configure max request size.
You should add this param to Seam Filter in web.xml.
See example:<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>
-
2. Re: rich:fileUpload doesnt behave correctly when the uploade
xiaotao183 Aug 5, 2008 7:48 PM (in response to xiaotao183)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? -
3. Re: rich:fileUpload doesnt behave correctly when the uploade
andrei_exadel Aug 6, 2008 2:44 AM (in response to xiaotao183)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. -
4. Re: rich:fileUpload doesnt behave correctly when the uploade
andrei_exadel Aug 6, 2008 2:48 AM (in response to xiaotao183)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. -
5. Re: rich:fileUpload doesnt behave correctly when the uploade
xiaotao183 Aug 6, 2008 4:37 AM (in response to xiaotao183)Thanks. what about defining createTempFiles property? where do I define this attribute, in web.xml or componet.xml?
-
6. Re: rich:fileUpload doesnt behave correctly when the uploade
andrei_exadel Aug 6, 2008 4:43 AM (in response to xiaotao183)In web.xml also.