[eluser]devbro[/eluser]
[quote author="GlennJ" date="1249508108"]The validation line was
Code:
$this->form_validation->set_rules('agree', 'lang:main_agree_terms', 'trim|required');
This is validating a standard HTML checkbox.
The reason it didn't work before is that if a checkbox is *not* checked it will not be included in the $_POST variable. So you need to check to see if the field is a file upload, if not - process as normal (even if it doesn't exist in $_POST).
That make sense?[/quote]
I got it. Thanks for the explanation. I implement the update to the code.