[eluser]federcla[/eluser]
hello,
some days I am following a project using CodeIgniter but I'm new with this tool and are not prepared
I have a problem with a file uploading, it should load in multiple directories but the process only writes in the first directory, do not understand where the error could you help me?
Code:
foreach ($this->input->post('mycheck') as $csig => $id_ent)
{
$config['upload_path'] = './css/'.$csig;
$config['allowed_types'] = 'css';
//echo $config['upload_path']."<br>";
//$config['max_size'] = '100';
$this->load->library('upload', $config);
if($this->upload->do_upload('file')==false){
$ctr=0;
echo array('error' => $this->upload->display_errors());
$this->load->library('Myview');
$this->myview->show_site($this,'webservices/modifiche_errore',$data);
}else{
$d =$this->upload->data();
//$config['upload_path'] = './css/';
echo $config['upload_path']."<br>";
$this->load->library('Myview');
$this->myview->show_site($this,'webservices/modifiche_ok',$data);
}
}
thanks