@ -2982,8 +2982,11 @@ class DocumentManager
}
}*/
if (!empty($title)) {
// Don't need to rename the title it's already added inside handle_uploaded_document
$params['title'] = $title;
if ($if_exists !== 'rename') {
if (!empty($comment)) {
@ -568,7 +568,7 @@ function handle_uploaded_document(
$groupId
);
$documentTitle = get_document_title($cleanName);
$documentTitle = disable_dangerous_file($cleanName);
$fullPath = $whereToSave.$fileSystemName;
$filePath = $uploadPath.$fileSystemName;
@ -9018,7 +9018,7 @@ class learnpath
'radio',
'if_exists',
get_lang("UplWhatIfFileExists"),
get_lang('Yes'),
get_lang('UplDoNothing'),
'nothing'
),
$form->createElement(