title: The filename C:\xampp\tmp\php4632.tmp is not readable in upload data excel with codeigniter to mysql
body: <p>before it, i use other function to upload excel data with codeigniter to mysql, but show error the file path is not readable, and then i use this code to upload excel data </p>
  
  <pre><code>//setting excel reader   
  error_reporting(E_ALL ^ E_NOTICE);
  error_reporting(0);
  require_once 'include/excel_reader.php';
      $get_periode    = $this-&gt;input-&gt;post("periode");
      $data = new Spreadsheet_Excel_Reader($_FILES['userfile']['tmp_name']);
      $count = 0;
      //read excel
      foreach($data-&gt;dump(false,false,false,false) as $row){
      $value  = $this-&gt;ruas_jalan_model-&gt;get_by(array("NAMA_KOTA"=&gt;$row["NAMA_KOTA"]),FALSE,FALSE,TRUE);
                      $data2  = array(
                          "ID_PERIODE"        =&gt; $get_periode,
                          "NAMA_KOTA"         =&gt; $value["NAMA_KOTA"],
                          "NO_RUAS1"          =&gt; $value["NO_RUAS1"],
                          "NO_RUAS2"          =&gt; $value["NO_RUAS2"],
                          "NO_RUAS3"          =&gt; $value["NO_RUAS3"],
                          "NAMA_RUAS"         =&gt; $value["NAMA_RUAS"],
                          "PANJANG"           =&gt; $value["PANJANG"],
                          "HOTMIX_BAIK"       =&gt; $value["HOTMIX_BAIK"],
                          "HOTMIX_SEDANG"     =&gt; $value["HOTMIX_SEDANG"],
                          "HOTMIX_RR"         =&gt; $value["HOTMIX_RR"],
                          "HOTMIX_RB"         =&gt; $value["HOTMIX_RB"],
                          "LAPEN_BAIK"        =&gt; $value["LAPEN_BAIK"],
                          "LAPEN_SEDANG"      =&gt; $value["LAPEN_SEDANG"],
                          "LAPEN_RR"          =&gt; $value["LAPEN_RR"],
                          "LAPEN_RB"          =&gt; $value["LAPEN_RB"],
                          "LPC"               =&gt; $value["LPC"],
                          "TANAH"             =&gt; $value["TANAH"],
                          "HUTAN"             =&gt; $value["HUTAN"],
                          "LANG"              =&gt; $value["LATITUDE"],
                          "LOT"               =&gt; $value["LOTITUDE"]
                      );
                      $this-&gt;ruas_jalan_model-&gt;save($data2);
                      $count++;                                               
              }
  </code></pre>
  
  <p>but i still get error not readable, and i don't know why, this is the error code</p>
  
  <pre><code>The filename C:\xampp\tmp\php4632.tmp is not readable
  </code></pre>
  
  <p>whats wrong ?</p>