[ 
https://issues.apache.org/jira/browse/FILEUPLOAD-157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Paul Spurr updated FILEUPLOAD-157:
----------------------------------

    Attachment: MultipartStream-item-listener-notification.patch

Patch file

> The ProgressListener isn't always notified about the total number of Items 
> found in a MultipartStream.
> ------------------------------------------------------------------------------------------------------
>
>                 Key: FILEUPLOAD-157
>                 URL: https://issues.apache.org/jira/browse/FILEUPLOAD-157
>             Project: Commons FileUpload
>          Issue Type: Bug
>    Affects Versions: 1.2
>         Environment: All.
>            Reporter: Paul Spurr
>         Attachments: MultipartStream-item-listener-notification.patch
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> A ProgressListener doesn't always get informed when a new part is found by 
> the MultipartStream. This is most easily replicated by uploading small files 
> (a few bytes in size). The listener will be correctly informed about the 
> content length and the total bytes uploaded but it will be told that it is 
> currently working on item 0. This causes an issue when this count is used to 
> detect a form has been submitted with no file.
> This has a simple fix to the org.apache.commons.fileupload.MultipartStream 
> (patch will be attached), when the items count is incremented the listener 
> needs to be notified.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to