From 6a19124a0970dfd5744c4a193b5d907ba85b323e Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Mon, 10 Apr 2017 20:01:10 +0200 Subject: Use raw bytes for upload size hidden input --- index.php | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'index.php') diff --git a/index.php b/index.php index 8f26c390..1e255583 100644 --- a/index.php +++ b/index.php @@ -1489,7 +1489,22 @@ function renderPage($conf, $pluginManager, $LINKSDB) if (! isset($_POST['token']) || ! isset($_FILES['filetoupload'])) { // Show import dialog - $PAGE->assign('maxfilesize', get_max_upload_size(ini_get('post_max_size'), ini_get('upload_max_filesize'))); + $PAGE->assign( + 'maxfilesize', + get_max_upload_size( + ini_get('post_max_size'), + ini_get('upload_max_filesize'), + false + ) + ); + $PAGE->assign( + 'maxfilesizeHuman', + get_max_upload_size( + ini_get('post_max_size'), + ini_get('upload_max_filesize'), + true + ) + ); $PAGE->renderPage('import'); exit; } -- cgit v1.2.3