From 281452b0314550298f0dbf7351757c384bb7bd02 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Fri, 11 Aug 2023 11:41:55 +0530 Subject: [PATCH] Fix invalid zip file issue during module upload --- controllers/admin/AdminModulesController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/controllers/admin/AdminModulesController.php b/controllers/admin/AdminModulesController.php index 0eae6b275..b54542f0c 100644 --- a/controllers/admin/AdminModulesController.php +++ b/controllers/admin/AdminModulesController.php @@ -1700,6 +1700,9 @@ class AdminModulesControllerCore extends AdminController 'author' => $module->author, 'image' => $module->image ? $module->image : '' ); + } else { + $this->errors[] = $this->l('The uploaded file does not contain a valid module or zip file name is incorrect.'); + $response['errors'] = $this->errors; } } else { $response['errors'] = $this->errors;