title: Cannot upload csv file using codeigniter
body: <p>I try to import <code>my.csv</code> file but I cannot upload file and find out my problem. 
  No error show, if I print my code see all empty value don't show anything.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>public function load_data(){
      $result = $this-&gt;web-&gt;select();
  //  print_r($result);exit;
        $output = '
         &lt;h3 align="center"&gt;Imported User Details from CSV File&lt;/h3&gt;
              &lt;div class="table-responsive"&gt;
               &lt;table class="table table-bordered table-striped"&gt;
                &lt;tr&gt;
                 &lt;th&gt;Sr. No&lt;/th&gt;
                 &lt;th&gt;First Name&lt;/th&gt;
                 &lt;th&gt;Last Name&lt;/th&gt;
                 &lt;th&gt;Phone&lt;/th&gt;
                 &lt;th&gt;Email Address&lt;/th&gt;
                &lt;/tr&gt;
        ';
        $count = 0;
        if($result-&gt;num_rows() &gt; 0)
        {
         foreach($result-&gt;result() as $row)
         {
          $count = $count + 1;
          $output .= '
          &lt;tr&gt;
           &lt;td&gt;'.$count.'&lt;/td&gt;
           &lt;td&gt;'.$row-&gt;first_name.'&lt;/td&gt;
           &lt;td&gt;'.$row-&gt;last_name.'&lt;/td&gt;
           &lt;td&gt;'.$row-&gt;phone.'&lt;/td&gt;
           &lt;td&gt;'.$row-&gt;email.'&lt;/td&gt;
          &lt;/tr&gt;
          ';
         }
        }
        else
        {
         $output .= '
         &lt;tr&gt;
             &lt;td colspan="5" align="center"&gt;Data not Available&lt;/td&gt;
            &lt;/tr&gt;
         ';
        }
        $output .= '&lt;/table&gt;&lt;/div&gt;';
        echo $output;
  }
  
  
   public function import() {
      $file_data = $this-&gt;csvimport-&gt;get_array($_FILES["csv_file"]["tmp_name"]);
     foreach($file_data as $row){
       $data[] = array(
        'first_name' =&gt; $row["First Name"],
        'last_name'  =&gt; $row["Last Name"],
        'phone'   =&gt; $row["Phone"],
        'email'   =&gt; $row["Email"]
       );
    }
    $this-&gt;web-&gt;insert($data);
   }
  </code></pre>
  
  <p>How can I upload <code>csv</code> and <code>xlsx</code> file by using <code>codeigniter</code> in easy and simple way?</p>