|
|
|
@ -1830,9 +1830,11 @@ class DocumentManager { |
|
|
|
|
|
|
|
|
|
if (isset($files['file'])) { |
|
|
|
|
$upload_ok = process_uploaded_file($files['file']); |
|
|
|
|
|
|
|
|
|
if ($upload_ok) { |
|
|
|
|
// File got on the server without problems, now process it |
|
|
|
|
$new_path = handle_uploaded_document($course_info, $files['file'], $base_work_dir, $path, api_get_user_id(), api_get_group_id(), null, $max_filled_space, $unzip, $if_exists, $show_output); |
|
|
|
|
if ($new_path) { |
|
|
|
|
|
|
|
|
|
$new_comment = isset($title) ? trim($comment) : ''; |
|
|
|
|
$new_title = isset($title) ? trim($title) : ''; |
|
|
|
@ -2010,6 +2012,7 @@ class DocumentManager { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|