From ef13c783e217c5a015573e43f753dc0366c296a3 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Thu, 25 Oct 2018 12:20:49 +0200 Subject: [PATCH] Implement the size of an assembly stream This will make it possible to act propely on moves of future files if we need to know the size (like for max size virus scanning). Signed-off-by: Roeland Jago Douma --- apps/dav/lib/Upload/AssemblyStream.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/dav/lib/Upload/AssemblyStream.php b/apps/dav/lib/Upload/AssemblyStream.php index 95e324f0468..eaf24f8741a 100644 --- a/apps/dav/lib/Upload/AssemblyStream.php +++ b/apps/dav/lib/Upload/AssemblyStream.php @@ -170,7 +170,9 @@ class AssemblyStream implements \Icewind\Streams\File { * @return array */ public function stream_stat() { - return []; + return [ + 'size' => $this->size, + ]; } /** -- 2.39.5