How can I validate two inputs using the CodeIgniter's File Upload Library?
I have two inputs
<input type="file" name="cover">
<input type="file" name="images[]" multiple>
I did try this one
if( ! $this->upload->do_upload('cover') || ! $this->upload->do_upload('images[]') ) {
die($this->upload->display_errors());
} else {
var_dump($this->upload->data('file_name'));die();
}
...but it always displays "You did not select a file to upload."