Skip to content

Commit

Permalink
Fixed auto title generation when uploading a file
Browse files Browse the repository at this point in the history
  • Loading branch information
createit-ru committed Oct 23, 2023
1 parent d161d81 commit 1379a34
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/components/fileman/src/Processors/File/Upload.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1379a34

Please sign in to comment.