|
本帖最后由 ahkxhyl 于 2015-5-15 17:59 编辑
PHP复制代码 function test (){
[color =#ff0000] $path = $_SERVER ["DOCUMENT_ROOT"] . "/ass/Mcard/" . '/' . $uid . '/';
if (! file_exists ( $path )) {
@mkdir ( $path, 0777, TRUE );
}
$config ['upload_path'] = "./ass/Mcard/" . '/' . $uid . '/';
$config ['allowed_types'] = 'gif|jpg|png|jpeg';
$config ['encrypt_name'] = true;
$this->load->library ( 'upload', $config );
$rs = $this->upload->multiple ( 'img', 0, $path );//多文件上传
$rsTfiles = $rs ['files'];[/color ]
-------------------------------------------------------------
$editpath = $_SERVER ["DOCUMENT_ROOT"] . "/ass/Mcard/" . '/' . $uid . '/';
if (! file_exists ( $editpath )) {
@mkdir ( $editpath, 0777, TRUE );
}
$configs ['upload_path'] = "./ass/Mcard/" . '/' . $uid . '/';
$configs ['allowed_types'] = 'gif|jpg|png|jpeg';
$configs ['encrypt_name'] = true;[color =#ff00]$this->load->library ( 'upload', $configs );
$yfilers = $this->upload->multiple ('editimg', 0, $editpath );
$editFiles = $yfilers['files'];
}
错误代码如图所示 ,代码只执行了上面上传部分,下面的上传部分未执行,请问下 我该怎么修改,让这 2段代码都能正常执行~~谢谢 复制代码 |
|