文件大小限制调整

This commit is contained in:
2025-12-09 11:51:22 +08:00
parent b391608d87
commit 4ff2c2493b
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -92,7 +92,7 @@ class UploadController
$result = Storage::adapter('oss')
->path(config('oss.oss_main_dir') . $sceneUrl . date('Ymd'))
->size(1024*1024*5)
->size(1024*1024*50)
->extYes($mimes)
->upload($file);
@@ -133,7 +133,7 @@ class UploadController
$result = Storage::adapter('oss')
->path(config('oss.oss_main_dir') . $sceneUrl . date('Ymd'))
->size(1024*1024*5)
->size(1024*1024*50)
->extYes(['image/jpeg','image/png'])
->extNo(['image/gif'])
->upload($file);
+1 -1
View File
@@ -19,5 +19,5 @@ return [
'status_file' => runtime_path() . '/webman.status',
'stdout_file' => runtime_path() . '/logs/stdout.log',
'log_file' => runtime_path() . '/logs/workerman.log',
'max_package_size' => 10 * 1024 * 1024
'max_package_size' => 50 * 1024 * 1024
];