diff --git a/lib/private/files/stream/encryption.php b/lib/private/files/stream/encryption.php index 40cbc1c141a..62b2ad9d9af 100644 --- a/lib/private/files/stream/encryption.php +++ b/lib/private/files/stream/encryption.php @@ -270,6 +270,7 @@ class Encryption extends Wrapper { if ($this->position === 0) { $this->writeHeader(); + $this->size+=$this->util->getBlockSize(); } $length = 0;