I want to pass text input and 2 files form view->controller->model and when i run this code it's alway error with "You did not select a file to upload." 

**View** - on this view i get input of text and two inputs of load files named "myFile" and "myDoc"

```
              <form action="<?=site_url('blog_maintain/save')?>" method = "post" enctype="multipart/form-data"><li class="field" style="display:inline"><p><i class = "icon-docs"></i>&nbsp;หัวข้อ : 
              <input class="text input" type="text" placeholder="Topic Input" name = "topic" id ="topic" required="required">
              </p></li>
              <li class="field" style="display:inline"><p><i class = "icon-menu"></i>&nbsp;คำอธิบาย : 
              <input class="text input" type="text" placeholder="Short Description" name = "desc" id = "desc" required="required">
              </p></li>
              <li class="field" style="display:inline"><p><i class = "icon-picture"></i>&nbsp;รูปภาพ :
              ******<input type="file" name = "myFile" id = "myFile" required="required" accept="image/*">******
              </p></li>
              <li class="field" style="display:inline"><p><i class = "icon-attach"></i>&nbsp;ไฟล์แนบ : 
              ***<input type="file" name = "myDoc" id = "myDoc" accept=".doc,.docx,.pdf,.txt,.xls,.xlsx,.ppt,.pptx">***
              </p></li>               
              <li class="field" style="display:inline"><p><i class = "icon-doc-text"></i>บทความ : 
              <textarea class="input textarea" placeholder="Description" rows="5" name = "text" id = "text" required="required"></textarea>
              </p></li>
              <input class="medium btn pill-left default push_seven two columns" type="submit" value = "upload" onclick = "return check();">
              <input class="medium btn pill-right default two columns" type="Reset" value = "Reset">

```

**Model** - in this model i pass the $\_POST to controller save\_blog()

```
public function save(){
    $this->load->model('blog_maintain_helper');
    $data['result'] = $this->blog_maintain_helper->save_blog();
    $this->loadView('blogMaintainView',$data);
}

```

Controller 

```
function save_blog(){           
    $config =  array(
        'upload_path'     => 'server_path',
        'allowed_types'   => "gif|jpg|png|jpeg|pdf|doc|xml",
        'overwrite'       => TRUE,          
    );
    get_instance()->load->library('upload', $this->config);
    if($this->upload->do_upload())          
    {
        echo "file upload success";             
    }           
    else            
    {
        echo $this->upload->display_errors();           
    }       
}

```