[eluser]Mitja[/eluser]
howto upload two files with different allowed_types. i need to upload two files, where first one must be an image (jpg, gif or png), the second file must be pdf.
How to check all two uploads?
If i use
Code:
$config['upload_path'] = './uploads/';
$config['allowed_types'] = 'gif|jpg|png';
$config['max_size'] = '1000';
$config['max_width'] = '1024';
$config['max_height'] = '768';
$this->load->library('upload', $config);
$this->upload->initialize($config);
$config2['upload_path'] = './uploads/';
$config2['allowed_types'] = 'pdf';
$this->load->library('upload', $config2);
$this->upload->initialize($config2);
What to do now?
$uploads = $this->upload->data() can not be used for boath files or i am wrong?
Thx for help