[eluser]theprodigy[/eluser]
You need to get the file_name from your $file_data array like such:
Code:
$fields = array(
“module_name”=>$this->input->post(‘module_name’),
“slug”=>$this->input->post(‘slug’),
“icon”=>$file_data['file_name'], // <--- use $file_data array, not $this->input->post()
“report_file_name”=>$this->input->post(‘report_file_name’),
“sql_select”=>$this->input->post(‘sql_select’),
“sql_filter”=>$this->input->post(‘sql_filter’),
“sql_order”=>$this->input->post(‘sql_order’)
);
you are currently trying to get it from $this->input->post(), and you can't do that. The rest of the fields are fine to get from $this->input->post(), you just can't get the file_name from it.