Removed accaptance of FormData object within AjaxLib controllerParameter check

Also adapted JS files to this change.

Signed-off-by: cris-technikum <hainberg@technikum-wien.at>
This commit is contained in:
Cris
2021-04-28 15:53:17 +02:00
committed by cris-technikum
6 changed files with 31 additions and 49 deletions
@@ -179,7 +179,8 @@ class requestAnrechnung extends Auth_Controller
// Output to AJAX
$this->outputJsonSuccess(array(
'antragdatum' => (new DateTime())->format('d.m.Y'),
'dms_id' => $lastInsert_dms_id
'dms_id' => $lastInsert_dms_id,
'filename' => $_FILES['uploadfile']['name']
));
}
@@ -129,7 +129,6 @@ $this->load->view(
<th class="col-xs-5 col-lg-2"><?php echo $this->p->t('anrechnung', 'herkunftDerKenntnisse'); ?></th>
<td>
<?php echo form_textarea(array(
'id' => 'textarea-herkunftKenntnisse',
'name' => 'herkunftKenntnisse',
'rows' => 1
)); ?>
@@ -140,11 +139,11 @@ $this->load->view(
<th class="col-xs-5 col-lg-2"><?php echo $this->p->t('anrechnung', 'nachweisdokumente'); ?> *</th>
<td>
<div><?php echo form_upload(array(
'id' => 'upload-nachweisdokumente',
'name' => 'uploadfile',
'accept' => '.pdf',
'size' => '50',
'required' => 'required'
'required' => 'required',
'enctype' => "multipart/form-data"
)); ?>
</div>
<a class="pull-right" id="download-nachweisdokumente"></a>
@@ -24,7 +24,8 @@ $this->load->view(
'inBearbeitung',
'neu',
'maxZeichen',
'errorBestaetigungFehlt'
'errorBestaetigungFehlt',
'systemfehler'
),
'person' => array(
'student',