From 8dcc7fc0f5c5063270ef04b8263f2e3cf303199b 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 1a73669698b68..c3002e8458e4b 100644 --- a/apps/dav/lib/Upload/AssemblyStream.php +++ b/apps/dav/lib/Upload/AssemblyStream.php @@ -161,7 +161,9 @@ public function stream_truncate($size) { * @return array */ public function stream_stat() { - return []; + return [ + 'size' => $this->size, + ]; } /**