[
https://issues.apache.org/jira/browse/FILEUPLOAD-59?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12508743
]
Felix K F Chan commented on FILEUPLOAD-59:
------------------------------------------
Since I am using Struts v1.1, when even there is multipart/form-data request,
it use fileupload v1.0. I am not sure if I put fileupload v1.2 together with
Struts v1.1, will they work.
I notice the code in fileupload v1.2 has changed FileUploadBase to use
streaming, but will it save some memory for form fields in the case mentioned
in this issue?
> [fileupload] Memory Issue
> -------------------------
>
> Key: FILEUPLOAD-59
> URL: https://issues.apache.org/jira/browse/FILEUPLOAD-59
> Project: Commons FileUpload
> Issue Type: Bug
> Affects Versions: 1.0 Final
> Environment: Operating System: All
> Platform: All
> Reporter: Vimil Saju
>
> The reason for out of memory exception is that a FileItem object is created
> for
> each request parameter whether it is file or an ordinary string parameter.
> the
> FileItem object has a field of type DeferredFileStream which is initialized
> to
> 262144 bytes (256 Kb) so if there are around 1000 request parameters, around
> 256 MB of space will be required to hold the request parameters even though
> most parameters may require only 8 to 10 bytes of memory for storage.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]