refactor: simplify upload_max_filesize unit conversion with fallthrough switch

pull/664/head
KnifeLemon 2 weeks ago
parent 144327da78
commit 42ad8ae23f

@ -711,19 +711,14 @@ class Request
case 'p': // PentaByte
case 'pb':
$value *= 1024;
return (int)$value;
case 't': // Terabyte
$value *= 1024;
return (int)$value;
case 'g': // Gigabyte
$value *= 1024;
return (int)$value;
case 'm': // Megabyte
$value *= 1024;
return (int)$value;
case 'k': // Kilobyte
$value *= 1024;
return (int)$value;
case 'b': // Byte
break;
default:

Loading…
Cancel
Save