X-Git-Url: https://git.p6c8.net/jirafeau.git/blobdiff_plain/3017f09505541870dfa4eaf43e69af28d699f8ab..70d841a8fc4727b02da6adde3ad12326430d87a8:/script.php diff --git a/script.php b/script.php index 20eafbf..aa04a6f 100644 --- a/script.php +++ b/script.php @@ -203,8 +203,7 @@ if (isset($_FILES['file']) && is_writable(VAR_FILES) } exit; } elseif (isset($_GET['get_capacity'])) { - echo min(jirafeau_ini_to_bytes(ini_get('post_max_size')), - jirafeau_ini_to_bytes(ini_get('upload_max_filesize'))); + echo jirafeau_get_max_upload_size_bytes(); } elseif (isset($_GET['get_maximal_upload_size'])) { echo $cfg['maximal_upload_size']; } elseif (isset($_GET['get_version'])) {