From 249f5f73101449bcda4b4fdcbc549946f0d938c5 Mon Sep 17 00:00:00 2001 From: Patrick Canterino Date: Sun, 31 May 2026 15:30:50 +0200 Subject: [PATCH] Renamed cfg option debug_enforce_legacy_upload to debug_enforce_classic_upload --- lib/config.original.php | 4 ++-- lib/functions.js.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/config.original.php b/lib/config.original.php index e77684b..37c87eb 100644 --- a/lib/config.original.php +++ b/lib/config.original.php @@ -235,9 +235,9 @@ $cfg['installation_done'] = false; */ $cfg['debug'] = false; -/* Enable this debug flag to enforce the legacy (synchronous) file upload mechanism. +/* Enable this debug flag to enforce the classic (synchronous) file upload mechanism. */ -$cfg['debug_enforce_legacy_upload'] = false; +$cfg['debug_enforce_classic_upload'] = false; /* Set Jirafeau's maximal upload chunk * When Jirafeau upload a large file, Jirafeau sends several data chunks to fit server's capabilities. diff --git a/lib/functions.js.php b/lib/functions.js.php index 4e95747..3574891 100644 --- a/lib/functions.js.php +++ b/lib/functions.js.php @@ -480,8 +480,8 @@ function classic_upload (file, time, password, one_time) function check_html5_file_api () { - // Enforce legacy upload is enabled through config! + if (isset($cfg['debug_enforce_classic_upload']) && $cfg['debug_enforce_classic_upload']) { ?> + // Enforce classic upload is enabled through config! return false;