1,/cofig/project.php 設(shè)置允許的文件后綴
2,
\app\commonlservice\UploadService.php
// 校驗(yàn)上傳文件后綴
$limit = array_merge(config('project.file_image'), config('project.file_video'), config('project.file_excel'), config('project.file_files'));
if (!in_array(strtolower($this->file->extension()), $limit)) {
throw new Exception('不允許上傳' . $this->file->extension() . '后綴文件');