From: Roeland Jago Douma Date: Thu, 25 Oct 2018 10:20:49 +0000 (+0200) Subject: Implement the size of an assembly stream X-Git-Tag: v14.0.4RC1~48^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ef13c783e217c5a015573e43f753dc0366c296a3;p=nextcloud-server.git 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 --- 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, + ]; } /**