Welcome Guest, Not a member yet? Register   Sign In
howto upload two files with different allowed_types
#1

[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


Messages In This Thread
howto upload two files with different allowed_types - by El Forum - 11-01-2008, 02:56 PM
howto upload two files with different allowed_types - by El Forum - 11-01-2008, 04:46 PM
howto upload two files with different allowed_types - by El Forum - 11-01-2008, 05:03 PM



Theme © iAndrew 2016 - Forum software by © MyBB