Closed buildnewapp closed 1 year ago
本地macos 上传没的问题,线上centos 原图可以正常上传,缩略图没有上次,调试发现: /**
$object_path = str_replace(get_home_path(), '', $file_path); get_home_path()返回是/, 导致object_path不正确,
修改如下: $object_path = $upload_path.'/'.$dirname.'/';
你得检查下为什么get_home_path返回了 /
get_home_path
/
本地macos 上传没的问题,线上centos 原图可以正常上传,缩略图没有上次,调试发现: /**
$object_path = str_replace(get_home_path(), '', $file_path); get_home_path()返回是/, 导致object_path不正确,
修改如下: $object_path = $upload_path.'/'.$dirname.'/';