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

This commit is contained in:
BANKA2017 2023-06-14 15:30:29 +08:00 committed by GitHub
parent f380478197
commit dd6f33afdf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -954,7 +954,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)) {