commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jochen Wiedmann (JIRA)" <>
Subject [jira] [Commented] (FILEUPLOAD-276) in FileItemStream.openStream() make ItemInputStream visible for "resume"
Date Thu, 28 Jul 2016 09:55:20 GMT


Jochen Wiedmann commented on FILEUPLOAD-276:

I don't understand what you expect. Right now, the logic is as simple as:

You have seen the end-of-stream event (-1 as a result from InputStream) => Stream is at
the end.
You have seen an Exception => Stopped for some other reason



> in FileItemStream.openStream() make ItemInputStream visible for "resume"
> ------------------------------------------------------------------------
>                 Key: FILEUPLOAD-276
>                 URL:
>             Project: Commons FileUpload
>          Issue Type: Improvement
>    Affects Versions: 1.3.2
>         Environment: debian stable, java8
>            Reporter: Ralf Hauser
>            Priority: Minor
> With large files and unstable connections ("resume") it would be great to find out whether
the stream is already at the end or whether it stopped for some other reason.
> This way I could use the "getBytesRead()" method to easily see how much is read.
> And maybe it would also tell me whether it can already see in its buffer the ending boundary
or already got to there.

This message was sent by Atlassian JIRA

View raw message