]> source.dussan.org Git - nextcloud-server.git/commitdiff
Implement the size of an assembly stream 12111/head
authorRoeland Jago Douma <roeland@famdouma.nl>
Thu, 25 Oct 2018 10:20:49 +0000 (12:20 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Mon, 29 Oct 2018 14:19:35 +0000 (15:19 +0100)
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 <roeland@famdouma.nl>
apps/dav/lib/Upload/AssemblyStream.php

index 95e324f046878bb286229e490f44f77b4c594ccc..eaf24f8741aa434c285602696c93be1cc5cd4b61 100644 (file)
@@ -170,7 +170,9 @@ class AssemblyStream implements \Icewind\Streams\File {
         * @return array
         */
        public function stream_stat() {
-               return [];
+               return [
+                       'size' => $this->size,
+               ];
        }
 
        /**