[
https://issues.apache.org/jira/browse/FILEUPLOAD-276?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15397335#comment-15397335
]
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
Sorry,
Jochen
> in FileItemStream.openStream() make ItemInputStream visible for "resume"
> ------------------------------------------------------------------------
>
> Key: FILEUPLOAD-276
> URL: https://issues.apache.org/jira/browse/FILEUPLOAD-276
> 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
(v6.3.4#6332)