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)) {