diff --git a/lib/private/Files/View.php b/lib/private/Files/View.php index 3514c82969..7866f90157 100644 --- a/lib/private/Files/View.php +++ b/lib/private/Files/View.php @@ -431,6 +431,7 @@ class View { echo fread($handle, $chunkSize); flush(); } + fclose($handle); $size = $this->filesize($path); return $size; }