You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Tomas Carlsson (JIRA)" <ji...@apache.org> on 2006/12/08 13:45:57 UTC

[jira] Updated: (WW-1549) File upload with JakartaMultipartRequest fails if file size less than DiskFileItem.sizeThreshold

     [ http://issues.apache.org/struts/browse/WW-1549?page=all ]

Tomas Carlsson updated WW-1549:
-------------------------------

    Attachment: s2_28850.patch.gz

Quick fix for this problem.

> File upload with JakartaMultipartRequest fails if file size less than DiskFileItem.sizeThreshold
> ------------------------------------------------------------------------------------------------
>
>                 Key: WW-1549
>                 URL: http://issues.apache.org/struts/browse/WW-1549
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Interceptors
>    Affects Versions: 2.0.2
>         Environment: Win XP, J2SE 1.5.0_08, struts-core-2.0.2-SNAPSHOT (Dec 07)
>            Reporter: Tomas Carlsson
>            Priority: Minor
>         Attachments: s2_28850.patch.gz
>
>
> commons-fileupload DiskFileItem will not write any data to the file system until its sizeThreshold has been reached. This is not considered in JakartaMultipartRequest. It should check this when getting the File object that is later injected to an Action.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira