get_lang('There was a problem uploading your document: the received file had a 0 bytes size on the server. Please, review your local file for any corruption or damage, then try again.'),
get_lang(
'There was a problem uploading your document: the received file had a 0 bytes size on the server. Please, review your local file for any corruption or damage, then try again.'
get_lang('There was a problem uploading your document: the received file had a 0 bytes size on the server. Please, review your local file for any corruption or damage, then try again.'),
get_lang(
'There was a problem uploading your document: the received file had a 0 bytes size on the server. Please, review your local file for any corruption or damage, then try again.'
'error' => Display::return_message(get_lang('The upload has failed. Either you have exceeded your maximum quota, or there is not enough disk space.'), 'error'),
'error' => Display::return_message(
get_lang(
'The upload has failed. Either you have exceeded your maximum quota, or there is not enough disk space.'
),
'error'
),
];
}
@ -4225,6 +4233,8 @@ function processWorkForm(
$checkDuplicated = false,
$showFlashMessage = true
) {
$courseEntity = $courseInfo['entity'];
$courseId = $courseInfo['real_id'];
$groupId = (int) $groupId;
$sessionId = (int) $sessionId;
@ -4260,10 +4270,10 @@ function processWorkForm(
$result['error'] = get_lang('You have already sent this file or another file with the same name. Please make sure you only upload each file once.');