feat: 上传文件大小限制
This commit is contained in:
@@ -611,12 +611,13 @@ class WebSocketDialog extends AbstractModel
|
||||
Base::makeDir(public_path($path));
|
||||
copy($filePath, public_path($path) . basename($filePath));
|
||||
} else {
|
||||
$setting = Base::setting('system');
|
||||
$data = Base::upload([
|
||||
"file" => $files,
|
||||
"type" => 'more',
|
||||
"path" => $path,
|
||||
"fileName" => $fileName,
|
||||
"size" => 100 * 1024
|
||||
"size" => ($setting['file_upload_limit'] ?: 0) * 1024
|
||||
]);
|
||||
}
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user