do_upload से पहले हर बार फ़ंक्शन के नीचे कॉल करें
$this->upload->initialize($upload);
इस सरणी की सभी फ़ाइलें मान लें
$_FILES['userfile']['name']
तब आपकी स्क्रिप्ट कुछ इस तरह दिखेगी
$this->load->library('upload');
for ($k = 0; $k < count($_FILES['userfile']['name']); $k++) {
$this->upload->initialize($upload); //must reinitialize to get rid of your bug ( i had it as well)
if (!$this->upload->do_upload('userfile',$k)) {
$this->load->view('upload/image_form', $data + array('error'=>$this->upload->display_errors()));
}
$udata[$k] = $this->upload->data(); //gradually build up upload->data()
}