From 70e4884e021c4a496d556323d850f4a6301200cf Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Thu, 25 Oct 2018 12:20:49 +0200 Subject: 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(-) (limited to 'apps/dav') 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, + ]; } /** -- cgit v1.2.3