[eluser]jacobc[/eluser]
Sorry I'm really not thinking... use
Code:
foreach($_FILES as $key => $value) {
$this->upload->initialize($config);
if ( ! $this->upload->do_upload($key)) {
$data['error'] = $this->upload->display_errors();
$this->load->view('propreg/f_propreg3_multifileupload_v1', $data); //Upload Form
}
else {
$this->load->model('Process_image');
$this->Process_image->process_pic();
}
}
And just do
Code:
<?php echo $error ?>
in the view.
Of course it really seems like a waste just using a view for that... so you could either create an array of all the errors which is how I was originally thinking...
Then loop through them in the view...
Or else, why use a view at all? just echo it from the controller.