From 00eeee5b7f1d7c4b4f19f9faa4ef9e669204fc89 Mon Sep 17 00:00:00 2001 From: Hai Nguyen Van Date: Tue, 11 Nov 2025 08:41:03 +0000 Subject: [PATCH] MDL-87113 filepicker: fix progress stuck after invalid upload --- public/lib/form/dndupload.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/lib/form/dndupload.js b/public/lib/form/dndupload.js index f7c91e2040d..e1d7a2a5eec 100644 --- a/public/lib/form/dndupload.js +++ b/public/lib/form/dndupload.js @@ -1058,6 +1058,8 @@ M.form_dndupload.init = function(Y, options) { if (result.error) { self.print_msg(result.error, 'error', result.errorcode); self.uploadfinished(); + // Don't do anything else after reporting the error. + return; } else { // Only update the filepicker if there were no errors if (result.event == 'fileexists') {