/* 检测并创建子目录 */
$subpath = $this->getSubPath($file['name']);
if(false === $subpath){
continue;
} else {
$file['savepath'] = $this->savePath . $subpath;
}和393-399行 if ($this->autoSub && !empty($rule)) {
$subpath = $this->getName($rule, $filename) . '/';
if(!empty($subpath) && !$this->uploader->mkdir($this->savePath .'/'. $subpath)){
$this->error = $this->uploader->getError();
return false;
}
}其中 $file['savepath'] = $this->savePath . $subpath;少了个 “/”应该改为
$file['savepath'] = $this->savePath .'/'. $subpath; 最佳答案