Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] uploading image in CI?
#1

[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


Messages In This Thread
[SOLVED] uploading image in CI? - by El Forum - 01-14-2010, 11:57 PM
[SOLVED] uploading image in CI? - by El Forum - 01-15-2010, 12:52 AM
[SOLVED] uploading image in CI? - by El Forum - 01-15-2010, 01:32 AM



Theme © iAndrew 2016 - Forum software by © MyBB