send bijlage ook bij new ww
This commit is contained in:
@@ -463,13 +463,12 @@ class Organisaties extends MY_Controller{
|
||||
|
||||
$orgID = $_POST['orgID'];
|
||||
$filename = $_FILES['file']['name'];
|
||||
|
||||
$this->deleteOldBijlage($orgID);
|
||||
|
||||
if ( ! $this->upload->do_upload('file')) $error = $this->upload->display_errors();
|
||||
else {
|
||||
$error = FALSE;
|
||||
$randomname = $this->upload->data('file_name')['file_name'];
|
||||
$this->deleteOldBijlage($orgID);
|
||||
$randomname = $this->upload->data('file_name');
|
||||
$this->setNieuweBijlage($orgID, $randomname, $filename);
|
||||
}
|
||||
$this->json($error);
|
||||
|
||||
Reference in New Issue
Block a user