Adapted system feedback when uploading too large documents

. Added clientside check to avoid uploads > 8MB size
. Adapted message returned by server, when max upload size is exceeded
This commit is contained in:
Cris
2022-02-23 12:30:08 +01:00
parent 78d863a383
commit 2d683390ae
4 changed files with 63 additions and 2 deletions
@@ -119,7 +119,7 @@ class requestAnrechnung extends Auth_Controller
// Validate data
if (empty($_FILES['uploadfile']['name']))
{
return $this->outputJsonError($this->p->t('ui', 'errorUploadFehlt'));
return $this->outputJsonError($this->p->t('ui', 'errorUploadFehltOderZuGross'));
}
if (isEmptyString($begruendung_id) ||
@@ -26,7 +26,8 @@ $this->load->view(
'neu',
'maxZeichen',
'errorBestaetigungFehlt',
'systemfehler'
'systemfehler',
'errorDokumentZuGross'
),
'anrechnung' => array(
'deadlineUeberschritten',