mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 20:29:29 +00:00
Restricted to upload only pdf files
Signed-off-by: cris-technikum <hainberg@technikum-wien.at>
This commit is contained in:
@@ -129,7 +129,7 @@ class requestAnrechnung extends Auth_Controller
|
||||
'insertvon' => $this->_uid
|
||||
);
|
||||
|
||||
if(isError($uploaddata = $this->dmslib->upload($dms, array('jpg', 'pdf'))))
|
||||
if(isError($uploaddata = $this->dmslib->upload($dms, array('pdf'))))
|
||||
{
|
||||
show_error(getError($uploaddata));
|
||||
}
|
||||
|
||||
@@ -142,7 +142,7 @@ $this->load->view(
|
||||
</div>
|
||||
<div class="form-inline panel-body">
|
||||
<div class="form-group">
|
||||
<input type="file" id="requestAnrechnung-uploadfile" name="uploadfile" accept=".pdf,.jpg" size="50" required <?php echo $disabled; ?>>
|
||||
<input type="file" id="requestAnrechnung-uploadfile" name="uploadfile" accept=".pdf" size="50" required <?php echo $disabled; ?>>
|
||||
</div>
|
||||
<?php if(!empty($anrechnungData->dms_id)): ?>
|
||||
<a class="pull-right" href="<?php echo current_url(). '/download?dms_id='. $anrechnungData->dms_id; ?>" target="_blank"><?php echo $anrechnungData->dokumentname ?></a>
|
||||
|
||||
Reference in New Issue
Block a user