update
This commit is contained in:
@ -133,7 +133,7 @@ class UploadController extends AbstractController
|
||||
// 保存路径
|
||||
$filename = uniqid() . '.' . pathinfo($file->getClientFilename(), PATHINFO_EXTENSION);
|
||||
$date = date('m-d');
|
||||
$targetPath = BASE_PATH . '/uploads/' . $filename;
|
||||
$targetPath = BASE_PATH . '/public/uploads/search-image/' . $date . '/' . $filename;
|
||||
|
||||
// 确保目录存在
|
||||
if (!is_dir(dirname($targetPath))) {
|
||||
|
Reference in New Issue
Block a user