From 06af22a46c00dde91af348b879670d4a1caf9176 Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 25 Jul 2023 09:23:06 -0600 Subject: [PATCH] Filemanager: Fix anonymous upload directory always reported failure when uploading Now it works first time the file is uploaded --- filemanager/inc/class.filemanager_ui.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filemanager/inc/class.filemanager_ui.inc.php b/filemanager/inc/class.filemanager_ui.inc.php index bd254e39ca..0b80f3bcfc 100644 --- a/filemanager/inc/class.filemanager_ui.inc.php +++ b/filemanager/inc/class.filemanager_ui.inc.php @@ -1791,7 +1791,6 @@ class filemanager_ui $path = $info['dirname'] . '/'. $info['filename'] . " ($i)." . $info['extension']; $i++; } - $data['path'] = $path; break; case 'ask': default: @@ -1811,6 +1810,7 @@ class filemanager_ui try { + $data['path'] = $path; if(Vfs::copy_uploaded($tmp_path, $path, $props, false)) { ++$arr['files'];