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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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