diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-10-25 12:20:49 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-10-26 10:43:11 +0200 |
commit | 70e4884e021c4a496d556323d850f4a6301200cf (patch) | |
tree | b0f47f00a6b7f1b748228e08aeaa1c620cda41e7 | |
parent | 410bd9d784fdd3f365cd1755f46265fbb28fbc15 (diff) | |
download | nextcloud-server-70e4884e021c4a496d556323d850f4a6301200cf.tar.gz nextcloud-server-70e4884e021c4a496d556323d850f4a6301200cf.zip |
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>
-rw-r--r-- | apps/dav/lib/Upload/AssemblyStream.php | 4 |
1 files changed, 3 insertions, 1 deletions
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, + ]; } /** |