From 1379a348e8d02063cdaac539b76d4936e8af43b8 Mon Sep 17 00:00:00 2001 From: Alexey Date: Mon, 23 Oct 2023 11:57:03 +0300 Subject: [PATCH] Fixed auto title generation when uploading a file --- core/components/fileman/src/Processors/File/Upload.php | 1 + 1 file changed, 1 insertion(+) diff --git a/core/components/fileman/src/Processors/File/Upload.php b/core/components/fileman/src/Processors/File/Upload.php index 2b73778..f9b06a5 100644 --- a/core/components/fileman/src/Processors/File/Upload.php +++ b/core/components/fileman/src/Processors/File/Upload.php @@ -198,6 +198,7 @@ public function process() $fileObject = $this->modx->newObject(File::class, array( 'fid' => $fid, 'resource_id' => $resourceId, + 'title'=> $title, 'name' => $nameWithoutExtension . '.' . $extension, 'internal_name' => $internalName, 'extension' => $extension,