Adapted DMSLib upload method to be accept field name from Controller

The fieldname represents the HTML uploadfile input name attribute, which
is given by the developer in the VIEW.

Signed-off-by: cris-technikum <[email protected]>
This commit is contained in:
Cris
2021-04-21 18:46:51 +02:00
committed by cris-technikum
parent 6dcb5e3a65
commit 7b485053d9
3 changed files with 8 additions and 8 deletions
@@ -223,7 +223,7 @@ class CreateAnrechnung extends Auth_Controller
);
// Upload document
return $this->dmslib->upload($dms, array('pdf'));
return $this->dmslib->upload($dms, 'uploadfile', array('pdf'));
}
}
@@ -316,6 +316,6 @@ class requestAnrechnung extends Auth_Controller
);
// Upload document
return $this->dmslib->upload($dms, array('pdf'));
return $this->dmslib->upload($dms, 'uploadfile', array('pdf'));
}
}