|
发表于 2012-4-19 18:59:17
|
显示全部楼层
修改upload类 第306行(CI 2.1)
/*
* Move the file to the final destination
* To deal with different server configurations
* we'll attempt to use copy() first. If that fails
* we'll use move_uploaded_file(). One of the two should
* reliably work in most environments
*/
// @fix 中文文件上传 iconv("utf-8","gb2312//IGNORE",$this->file_name)
if ( ! @copy($this->file_temp, $this->upload_path.iconv("utf-8","gb2312//IGNORE",$this->file_name)))
{
if ( ! @move_uploaded_file($this->file_temp, $this->upload_path.iconv("utf-8","gb2312//IGNORE",$this->file_name)))
{
$this->set_error('upload_destination_error');
return FALSE;
}
}
|
|