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