From: Jerome Jutteau Date: Sun, 15 Nov 2020 22:53:27 +0000 (+0100) Subject: [BUGFIX] show proper error on classic upload failure X-Git-Tag: 4.2.0~48 X-Git-Url: https://git.p6c8.net/jirafeau.git/commitdiff_plain/2cca8753a5d894f285a3dfbbac7bb7f76baf3cf9?ds=inline;hp=196fff8e98e6615285ea2861755f870b1e135510 [BUGFIX] show proper error on classic upload failure Signed-off-by: Jerome Jutteau --- diff --git a/lib/functions.js.php b/lib/functions.js.php index 5b4ad60..1527d01 100644 --- a/lib/functions.js.php +++ b/lib/functions.js.php @@ -370,6 +370,10 @@ function classic_upload (file, time, password, one_time, upload_password) show_link (res[0], res[1], res[2], expiryDate); } + else + { + pop_failure (""); + } } req.open ("POST", 'script.php' , true);