We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8829ea8 commit 3767b29Copy full SHA for 3767b29
system/Files/File.php
@@ -106,7 +106,7 @@ public function getSizeByUnit(string $unit = 'b')
106
return match (strtolower($unit)) {
107
'kb' => $this->getSizeByUnitBinary(FileSizeUnit::KB),
108
'mb' => $this->getSizeByUnitBinary(FileSizeUnit::MB),
109
- default => $this->getSizeByUnitBinary(FileSizeUnit::B)
+ default => $this->getSize()
110
};
111
}
112
0 commit comments