upload in two diffrent path - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: upload in two diffrent path (/showthread.php?tid=35473) |
upload in two diffrent path - El Forum - 10-30-2010 [eluser]misterone[/eluser] Hello, If i upload a file. It must copy in two diffrent path's. Wich script can i use ? $config['upload_path'] = realpath('pictures/'); $config['allowed_types'] = 'gif|jpg|jpeg|png|mov|wmv|flv|mpeg|avi|mp4|3gp|amv'; $config['max_width'] = '1980'; $this->load->library('upload',$config); if(!$this->upload->do_upload() == TRUE) { $data['content_view'] = 'upload'; $data['error'] = $this->upload->display_errors(); $this->load->view('start', $data); } In advance thanks. upload in two diffrent path - El Forum - 10-31-2010 [eluser]Fireclave[/eluser] You can use this function http://de2.php.net/manual/en/function.copy.php upload in two diffrent path - El Forum - 10-31-2010 [eluser]misterone[/eluser] Can i use two paths at this function : $config[‘upload_path’] = realpath(‘pictures/’); ?? upload in two diffrent path - El Forum - 11-01-2010 [eluser]Fireclave[/eluser] 1. I think no, because this function will overwrite the first path 2. Why are you not using copy() ?? |