title: file upload code igniter..not working
body: <p>This is in my controller for file upload</p>
  
  <pre><code>$config['upload_path'] = './assets/images/b2b/banner-agent/';
  $config['allowed_types'] = 'gif|jpg|png';
  $config['overwrite'] = TRUE;
  $config['file_name'] = "$banner2";
  $this-&gt;load-&gt;library('upload', $config);
  $this-&gt;upload-&gt;data();
  $this-&gt;upload-&gt;do_upload();
  $this-&gt;upload-&gt;initialize($config);
  </code></pre>
  
  <p>is there any wrong with my code? The upload not working.</p>