文件上传大小限制10M

main
yanzai 7 months ago
parent 4a5d63a174
commit 83a8ead9ee

@ -276,7 +276,7 @@ class HealthCertificateController extends Controller
$file_extension = $mimeTypeToExtension[$mimeType];
// 验证大小2MB以内
if ($file->getSize() > 2 * 1024 * 1024) {
if ($file->getSize() > 10 * 1024 * 1024) {
return response()->json([
'status' => 400,
'msg' => '文件大小不能超过2M'

Loading…
Cancel
Save