Problem with Weird CodeIgniter

There is a low depth. PHP, Codeigniter, LAMP.

I created a patch for all of you to see my code. http://fixee.org/paste/s8jc04t/

Whenever I have mulitple file uploads (e.g. fileupload1, fileupload2, fileupload3, etc.) and I tried to load the data from each one correctly, I seem to duplicate the first downloaded file data. Can someone help, the corrector explains everything.

+4
source share
2 answers

put this line before each load operation.

$this->upload->initialize($config); 

this code will reset to configure all the default configuration parameters, and then use your configs for the next file without reloading the library again and again.

+10
source

You might need to reinitialize the library. load the configuration again and initialize the library:

 $config['var'] = 'value'; $this->load->library('upload', $config); 
+1
source

All Articles