1
0
mirror of https://github.com/prasathmani/tinyfilemanager.git synced 2025-07-11 12:26:19 +02:00

fix: #52 Does not respect directory tree while uploading a folder containing sub-folders (#1056)

This commit is contained in:
BANKA2017
2024-05-01 12:31:27 +08:00
committed by GitHub
parent ca4b1b1743
commit a1ae0fa729

View File

@ -958,7 +958,7 @@ if (!empty($_FILES) && !FM_READONLY) {
$targetPath = $path . $ds; $targetPath = $path . $ds;
if ( is_writable($targetPath) ) { if ( is_writable($targetPath) ) {
$fullPath = $path . '/' . basename($fullPathInput); $fullPath = $path . '/' . $fullPathInput;
$folder = substr($fullPath, 0, strrpos($fullPath, "/")); $folder = substr($fullPath, 0, strrpos($fullPath, "/"));
if (!is_dir($folder)) { if (!is_dir($folder)) {