title: File not selected in form multiple upload in Codeigniter
body: <p>so i try to make some upload form which will upload some image. but when the image has chosen then the button submit has clicked the result say "You did not select a file to upload."</p>
  
  <p>im using php, with codeigniter framework</p>
  
  <p>The view </p>
  
  <pre><code>&lt;form class="text-left" enctype="multipart/form-data" method="post" action="&lt;?= base_url('aduan/add'); ?&gt;"&gt;
  &lt;div class="form-group"&gt;
                          &lt;label&gt;Upload Foto Bukti Aduan&lt;/label&gt;
  
                          &lt;div class="form-group"&gt;
                              &lt;label&gt;Bukti Aduan 1&lt;/label&gt;
                              &lt;input class="form-control-file" type="file" id="bukti1" name="bukti_aduan1" /&gt;
                              &lt;?= form_error('bukti_aduan1', '&lt;p class="text-danger font-weight-bold pl-2"&gt;', '&lt;/p&gt;'); ?&gt;
                          &lt;/div&gt;
  
                          &lt;div class="form-group"&gt;
                              &lt;label&gt;Bukti Aduan Pelapor di Lokasi&lt;/label&gt;
                              &lt;input class="form-control-file" type="file" id="bukti2" name="bukti_aduan2" /&gt;
                              &lt;?= form_error('bukti_aduan2', '&lt;p class="text-danger font-weight-bold pl-2"&gt;', '&lt;/p&gt;'); ?&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
  </code></pre>
  
  <p>which the view will run the controller "aduan" for input function   </p>
  
  <p>Controller file:</p>
  
  <pre><code>    $aduan = $this-&gt;aduan_model;
          $validation = $this-&gt;form_validation;
          $validation-&gt;set_rules($aduan-&gt;rules());
  
          if ($validation-&gt;run()) {
              $aduan-&gt;tambah();
  
              $this-&gt;session-&gt;set_flashdata('success', 'Berhasil disimpan');
  
              $data['title'] = 'Buat Aduan Kasus Lingkungan';
              $this-&gt;load-&gt;view('home/home_header', $data);
              $this-&gt;load-&gt;view('home/aduansukses');
              $this-&gt;load-&gt;view('home/home_footer');
          } else {
              $data['aduan'] = $this-&gt;aduan_model-&gt;getAll();
              $data['title'] = 'Buat Aduan Kasus Lingkungan';
              $this-&gt;load-&gt;view('home/home_header', $data);
              $this-&gt;load-&gt;view('home/buataduan');
              $this-&gt;load-&gt;view('home/home_footer');
          }
  </code></pre>
  
  <p>then the controller will load a model which is "aduan_model"</p>
  
  <p>Model file :</p>
  
  <pre><code>public function tambah()
      {
          $post = $this-&gt;input-&gt;post();
  
          $this-&gt;nik_pelapor = $post["nik_pelapor"];
          $this-&gt;nama_pelapor = $post["nama_pelapor"];
          $this-&gt;email_pelapor = $post["email_pelapor"];
          $this-&gt;telp_pelapor = $post["telp_pelapor"];
          $this-&gt;alamat_pelapor = $post["alamat_pelapor"];
          $this-&gt;aduan = $post["aduan"];
          $this-&gt;bukti_aduan1 = $this-&gt;_uploadImage();
          $this-&gt;bukti_aduan2 = $this-&gt;_uploadImage2();
          $this-&gt;status_aduan = 'Dalam proses';
          $this-&gt;tgl_aduan = time();
          $this-&gt;db-&gt;insert($this-&gt;_table, $this);
      }
  private function _uploadImage()
      {
          $config['upload_path']          = './uploads/';
          $config['allowed_types']        = 'gif|jpg|png|jpeg';
  
  
          // $config['max_width']            = 1024;
          // $config['max_height']           = 768;
  
          $this-&gt;load-&gt;library('upload', $config);
  
          if ($this-&gt;upload-&gt;do_upload('bukti_aduan1')) {
              return $this-&gt;upload-&gt;data();
          }
  
          return "default.jpg";
      }
      private function _uploadImage2()
      {
          $config['upload_path']          = './uploads/';
          $config['allowed_types']        = 'gif|jpg|png|jpeg';
  
  
          // $config['max_width']            = 1024;
          // $config['max_height']           = 768;
  
  
          $this-&gt;load-&gt;library('upload', $config);
          if ($this-&gt;upload-&gt;do_upload('bukti_aduan2')) {
              return $this-&gt;upload-&gt;data();
          }
  
          return "default.jpg";
      }
  </code></pre>
  
  <p>i expect the output of image can be stored in file upload and inserted in database but it doesnt select any file</p>
  
  <p>please help :)</p>