pull/664/head
KnifeLemon 3 weeks ago
commit a1e1c5010a

@ -650,7 +650,7 @@ class Request
'name' => $headers['content-disposition']['filename'], 'name' => $headers['content-disposition']['filename'],
'type' => $headers['content-type'] ?? 'application/octet-stream', 'type' => $headers['content-type'] ?? 'application/octet-stream',
'size' => mb_strlen($value, '8bit'), 'size' => mb_strlen($value, '8bit'),
'tmp_name' => null, 'tmp_name' => '',
'error' => UPLOAD_ERR_OK, 'error' => UPLOAD_ERR_OK,
]; ];
@ -711,18 +711,19 @@ class Request
case 'p': // PentaByte case 'p': // PentaByte
case 'pb': case 'pb':
$value *= 1024; $value *= 1024;
return (int)$value;
case 't': // Terabyte case 't': // Terabyte
case 'tb':
$value *= 1024; $value *= 1024;
return (int)$value;
case 'g': // Gigabyte case 'g': // Gigabyte
case 'gb':
$value *= 1024; $value *= 1024;
return (int)$value;
case 'm': // Megabyte case 'm': // Megabyte
case 'mb':
$value *= 1024; $value *= 1024;
return (int)$value;
case 'k': // Kilobyte case 'k': // Kilobyte
case 'kb':
$value *= 1024; $value *= 1024;
return (int)$value;
case 'b': // Byte case 'b': // Byte
break; break;
default: default:

Loading…
Cancel
Save