Compare commits

...

3 commits

Author SHA1 Message Date
Jonas van den Berg 55dcb4bc4e
Merge 4e8303fae6 into a1ae0fa729 2024-05-07 21:48:17 +05:30
BANKA2017 a1ae0fa729
fix: #52 Does not respect directory tree while uploading a folder containing sub-folders (#1056) 2024-05-01 10:01:27 +05:30
vonas 4e8303fae6 Consider empty files to be text files 2023-03-07 15:22:07 +01:00

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)) {
@ -3054,6 +3054,7 @@ function fm_get_text_mimes()
'image/svg+xml',
'message/rfc822',
'application/json',
'application/x-empty',
);
}