现在程序中有个form表单,其中有多个文件要上传,有的事.doc文件,有的是.jpg图片,现在接受处理的程序(codeIgniter)中想用$this->load->library('upload')来处理上传这些传过来的文件,这样要用到多个$this->load->library('upload',$config),$config是个数组,里面存放了上传文件的一些设置,随着每个上传文件的不同,$config也不同,但是现在发现第一个使用$this->load->library('upload',$config)的地方是正常的,第二次使用$this->load->library('upload',$config)就出问题了,这句语句好像根本没执行,程序如下:
第一次使用时如下,上传第一个.doc文件,是正常的:
$common = $this->common;
$upload_path = createFile($common['icp_file'],$common['create_file_type']);
$config['upload_path'] = $upload_path;
$config['file_name'] = "icp_file";
$config['allowed_types'] = 'txt|pdf|doc|xls';
$config['max_size'] = $common['maxsize'];
$this->load->library('Upload', $config);

第二次使用$this->load->library('upload',$config),上传第二个文件(.jpg),就出问题了,好像没有执行
$common = $this->common;
$upload_path = createFile($common['water'],$common['create_file_type']);
$config_water = array();
$config_water['upload_path'] = $upload_path;
$config_water['file_name'] = "water";
$config_water['allowed_types'] = $common['allowed_types'];
$config_water['max_size'] = $common['maxsize'];
$this->load->library('Upload', $config_water);(这句好像没执行啊)
请问问题出在哪里,如何修改啊上传