diff --git a/system/Files/File.php b/system/Files/File.php index 6a2529cac149..7c0b536e557c 100644 --- a/system/Files/File.php +++ b/system/Files/File.php @@ -106,7 +106,7 @@ public function getSizeByUnit(string $unit = 'b') return match (strtolower($unit)) { 'kb' => $this->getSizeByUnitBinary(FileSizeUnit::KB), 'mb' => $this->getSizeByUnitBinary(FileSizeUnit::MB), - default => $this->getSizeByUnitBinary(FileSizeUnit::B) + default => $this->getSize() }; }