commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 39276] - [fileupload] add support for Servlet 2.3 filters
Date Tue, 11 Apr 2006 20:52:07 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39276>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39276





------- Additional Comments From stephen.butler@gmail.com  2006-04-11 21:52 -------
I forgot to mention that this adds a dependency on commons-beanutils. This is
because the parameters to FileItemFactory and ServletFileUpload can be
configured through the webapp deployment descriptor. For example, if you wanted
to set a max upload of 100000000 and a temp directory of /tmp, your filter
section would look like this:

    <filter>
        <filter-name>FileUploadFilter</filter-name>
       
<filter-class>org.apache.commons.fileupload.filter.FilterFileUpload</filter-class>

        <init-param>
            <param-name>sizeMax</param-name>
            <param-value>100000000</param-value>
        </init-param>

        <init-param>
            <param-name>FileItemFactory.repository</param-name>
            <param-value>/tmp</param-value>
        </init-param>
    </filter>


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message