Browse Source

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 <roeland@famdouma.nl>
Roeland Jago Douma 5 năm trước cách đây
mục cha
commit
70e4884e02
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      apps/dav/lib/Upload/AssemblyStream.php

+ 3 - 1
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,
+		];
 	}
 
 	/**