1、修复几处bug

2、上传配置修改
This commit is contained in:
2018-04-03 19:26:06 +08:00
parent b97da3e1ac
commit 1f0dd54ab8
5 changed files with 13 additions and 12 deletions

View File

@@ -19,8 +19,9 @@ class Upload {
$config = $this->$upload_type();
// 获取表单上传文件 例如上传了001.jpg
$file = request()->file('file');
$size = $config['size'] * 1024 * 1024;
$info = $file->validate(array(
'size' => $config['size'],
'size' => $size,
'ext' => $config['ext'],
))->move($config['rootPath'], true, false);