From eae523eb56e5a74b7143c598839e3944a410742f Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 28 Sep 2018 14:39:23 +0200 Subject: AssemblyStream is also eof if we have no more source stream Signed-off-by: Robin Appelman --- apps/dav/lib/Upload/AssemblyStream.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dav/lib/Upload/AssemblyStream.php b/apps/dav/lib/Upload/AssemblyStream.php index e20d8f9adba..3ba24bf60fd 100644 --- a/apps/dav/lib/Upload/AssemblyStream.php +++ b/apps/dav/lib/Upload/AssemblyStream.php @@ -182,7 +182,7 @@ class AssemblyStream implements \Icewind\Streams\File { * @return bool */ public function stream_eof() { - return $this->pos >= $this->size; + return $this->pos >= $this->size || $this->currentStream === null; } /** -- cgit v1.2.3