[jboss-user] [JBoss Seam] - Re: Restrict file upload size individually

tazman do-not-reply at jboss.com
Wed Jun 27 08:57:18 EDT 2007


If I have this in my components.xml

<component class="org.jboss.seam.web.MultipartFilter">
  |   <property name="maxRequestSize">1000000</property>
  | </component>

then the filter just checks the Content-Length of the HTTP request and throws the exception before reading the HTTP content if the length is bigger that the maxRequestSize. So the file is not really uploaded to the server and doesn't consume any memory resources.

Whereas, with 

<s:fileUpload ... fileSize="#{foo.fixedSize}" />

the filter reads the content and gives my backing bean the control to decide. I'd like to have the maxRequestSize behavior in this case as well. Is it doable? Is my understanding correct?

tazman

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058169#4058169

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4058169



More information about the jboss-user mailing list