From 11a3d1f0c4fd636dbe2163bad46ea57d9c803bb2 Mon Sep 17 00:00:00 2001 From: "alejandro.campos@artica.es" Date: Mon, 26 Feb 2024 12:56:55 +0100 Subject: [PATCH] fix filemanager --- pandora_console/include/functions_filemanager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/include/functions_filemanager.php b/pandora_console/include/functions_filemanager.php index a0194cf31d..a68c06c702 100644 --- a/pandora_console/include/functions_filemanager.php +++ b/pandora_console/include/functions_filemanager.php @@ -151,7 +151,7 @@ function upload_file($upload_file_or_zip, $default_real_directory, $destination_ // Copy file to directory and change name. $nombre_archivo = sprintf('%s/%s', $real_directory, $filename); try { - if (isset($_FILES['file']['type']) && empty($_FILES['file']['type']) === false) { + if (isset($_FILES['file']['type']) === true && empty($_FILES['file']['type']) === false) { $type = $_FILES['file']['type']; } else { $type = strtolower(pathinfo($_FILES['file']['name'], PATHINFO_EXTENSION));