codeigniter upload file not uploaded
<pre><code>$config['upload_path'] = './assets/images/gambar_paket/';
            $config['allowed_types'] = 'gif|jpg|png|jpeg|bmp'; 
            $config['max_size'] = 1000;
            $config['max_width'] = 1024; 
            $config['max_height'] = 900;
            $config['file_name'] = $file;
            $this-&gt;load-&gt;library('upload', $config);
            $this-&gt;upload-&gt;do_upload();

            $data = array('nama_paket' =&gt; $nama,
                          'deskripsi' =&gt; $deskripsi,
                          'harga' =&gt; $harga,
                          'jenis' =&gt; $jenis,
                          'gambar' =&gt; $file
                         );
            $this-&gt;mod_main-&gt;createData($data,'paket');
            redirect('con_main/packet','refresh');
</code></pre>

<p>that's my controller for doing upload, but the file doesn't upload to the upload path. Please anyone help me</p>