Skip to content

Commit

Permalink
fix: #52 Does not respect directory tree while uploading a folder con…
Browse files Browse the repository at this point in the history
…taining sub-folders (#1056)
  • Loading branch information
BANKA2017 authored May 1, 2024
1 parent ca4b1b1 commit a1ae0fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tinyfilemanager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit a1ae0fa

Please sign in to comment.