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