[eluser]maria clara[/eluser]
hi,
i have a script for uploading an image, it works well but it doesn't store the image in the database. and it even don't send the image to the destination i put in the CI.
Code:
$config['upload_path'] = './reports/module/';
$config['allowed_types'] = 'gif|jpg|png';
$config['max_size'] = '100';
$config['max_width'] = '1024';
$config['max_height'] = '768';
$this->load->library('upload', $config);
$file_data = $this->upload->data();
$file_name = $file_data['file_name'];
$fields = array(
"module_name",
"slug",
"report_file_name",
"icon"=>$file_data['file_name'],
"sql_select",
"sql_filter",
"sql_order"
);
help anyone??
thanks,
maria