diff --git a/src/helpers.php b/src/helpers.php
index <HASH>..<HASH> 100644
--- a/src/helpers.php
+++ b/src/helpers.php
@@ -111,8 +111,10 @@ if (! function_exists('config')) {
 if (! function_exists('file_size_convert')) {
     function file_size_convert($size)
     {
+        if ($size === 0) {
+            return '0 b';
+        }
         $unit = ['b', 'kb', 'mb', 'gb', 'tb', 'pb'];
-
         return round($size / pow(1024, ($i = floor(log($size, 1024)))), 2).' '.$unit[intval($i)];
     }
 }
:bug: fixed a divide by zero in file_size_convert