更新:修复后台视频上传目录与存在位置不一致的BUG
parent
400a4b9270
commit
316013769b
|
@ -37,7 +37,7 @@ class Upload extends BaseController
|
|||
$video = request()->file('video');
|
||||
if($this->validate->checkVideo($video)){
|
||||
$src = Filesystem::disk('video')->putFile(date('Ymd'), $video, 'uniqid');
|
||||
$src = $this->uploadPath . '/' . $src;
|
||||
$src = $this->uploadPath . '/videos/' . $src;
|
||||
$return['src'] = $src;
|
||||
File::add($video, $src, 'video'); //加入上传文件表
|
||||
return $this->json(0, 'ok', $return);
|
||||
|
|
Loading…
Reference in New Issue