更新上传大小限制
This commit is contained in:
parent
d70257ed8f
commit
a0bcaf9839
@ -354,7 +354,7 @@ class IndexController extends Base{
|
|||||||
try {
|
try {
|
||||||
// 验证上传的文件
|
// 验证上传的文件
|
||||||
validate([
|
validate([
|
||||||
'image'=>'filesize:10240|fileExt:jpg,png,gif,jpeg'
|
'image'=>'filesize:51200|fileExt:jpg,png,gif,jpeg'
|
||||||
])->check($file);
|
])->check($file);
|
||||||
|
|
||||||
// 存储文件到public磁盘的uploads目录
|
// 存储文件到public磁盘的uploads目录
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user