title: Multiple file upload in usnig codeigniter
body: <p>Here is my input filed </p>
  
  <pre><code>&lt;input type="file" name="image1"&gt;
  &lt;input type="file" name="image2"&gt;
  </code></pre>
  
  <p>Here is my single file upload controller function.If i want to upload multiple file then what to do. </p>
  
  <pre><code>  function upload(){
             $this-&gt;load-&gt;library('upload', $config);
              if (!$this-&gt;upload-&gt;do_upload()) {
                  $data['error'] = $this-&gt;upload-&gt;display_errors();
                  $this-&gt;load-&gt;view('error', $data);
                  } else {                         
                      $file_data =  $this-&gt;upload-&gt;data();                        
                      $request_profile =array();
                      $request_profile['request_id']= $request_id;
                      $request_profile['profile_photo_location'] = $file_data['file_name'];
                      $request_profile['full_pp_name']=$this-&gt;input-&gt;post('full_pp_name');
                      $this-&gt;test_model-&gt;insertTableData('request_profile',$request_profile);
  
                     }
      }
  </code></pre>