diff --git a/tinyfilemanager.php b/tinyfilemanager.php index 71786c98..a5056c38 100644 --- a/tinyfilemanager.php +++ b/tinyfilemanager.php @@ -954,7 +954,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)) {