[eluser]DaTran[/eluser]
I have this in my controller; as you can see i am using the form validation config file to call all validations.
Code:
if($this->form_validation->run('anime/add') == TRUE){
if($this->anime_model->add($this->input->post())){
if($this->upload->do_upload('image')){
$template['result'] = TRUE;
}
}
}
How do I use the form validation to "require" the
Code:
<input type="file" name="image" size="20" />
field. (views page)
It keeps saying that there is no image selected.
I am also using MY_Form_validation.php to call in custom validations.