From a1ae0fa7297aaa326db7da6724c0cc1eb3767b2c Mon Sep 17 00:00:00 2001 From: BANKA2017 <17263253+BANKA2017@users.noreply.github.com> Date: Wed, 1 May 2024 12:31:27 +0800 Subject: [PATCH] fix: #52 Does not respect directory tree while uploading a folder containing sub-folders (#1056) --- tinyfilemanager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tinyfilemanager.php b/tinyfilemanager.php index efc3ce6..62872a6 100644 --- a/tinyfilemanager.php +++ b/tinyfilemanager.php @@ -958,7 +958,7 @@ if (!empty($_FILES) && !FM_READONLY) { $targetPath = $path . $ds; if ( is_writable($targetPath) ) { - $fullPath = $path . '/' . basename($fullPathInput); + $fullPath = $path . '/' . $fullPathInput; $folder = substr($fullPath, 0, strrpos($fullPath, "/")); if (!is_dir($folder)) {