X-Git-Url: https://git.p6c8.net/jirafeau_mojo42.git/blobdiff_plain/3017f09505541870dfa4eaf43e69af28d699f8ab..68c2da9ee1f75ee5b535afad5cdfef57355a3df2:/script.php?ds=sidebyside 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'])) {