diff --git a/tinyfilemanager.php b/tinyfilemanager.php index efc3ce6a..62872a62 100644 --- a/tinyfilemanager.php +++ b/tinyfilemanager.php @@ -958,7 +958,7 @@ function get_file_path () { $targetPath = $path . $ds; if ( is_writable($targetPath) ) { - $fullPath = $path . '/' . basename($fullPathInput); + $fullPath = $path . '/' . $fullPathInput; $folder = substr($fullPath, 0, strrpos($fullPath, "/")); if (!is_dir($folder)) {