if(!move_uploaded_file($file['tmp_name'], $this->autoCharset($filename,'utf-8','gbk'))) { $this->error = '文件上传保存错误!'; return false;}
如果出错,一定是文件目录权限的问题,不会有别的。
move_uploaded_file 无返回值 一直失败
最新推荐文章于 2021-03-10 02:44:12 发布
if(!move_uploaded_file($file['tmp_name'], $this->autoCharset($filename,'utf-8','gbk'))) { $this->error = '文件上传保存错误!'; return false;}
如果出错,一定是文件目录权限的问题,不会有别的。