作者 lyh

gx

... ... @@ -98,7 +98,7 @@ class FileController
$files = $this->request->file('file');
if (empty($files)) {
$this->response('没有上传的文件!', 400);
$this->response('没有上传的文件!');
}
$type = $this->request->post('type','single');
$this->setUrl();
... ... @@ -107,6 +107,9 @@ class FileController
} else {
$size = $files->getSize();
$file_type = $files->getClientOriginalExtension();
if($files->getClientMimeType() === 'video/mp4'){
$this->response('上传格式错误');
}
return $this->single($files,$size,$file_type);
}
}
... ...