qifengquan 1 year ago
parent
commit
28fcc842d3
3 changed files with 3 additions and 3 deletions
  1. 1 1
      application/extra/upload.php
  2. 1 1
      thinkphp/lang/zh-cn.php
  3. 1 1
      thinkphp/library/think/File.php

+ 1 - 1
application/extra/upload.php

@@ -17,7 +17,7 @@ return [
     /**
      * 最大可上传大小
      */
-    'maxsize'   => '1mb',
+    'maxsize'   => '100mb',
     /**
      * 可上传的文件类型
      */

+ 1 - 1
thinkphp/lang/zh-cn.php

@@ -82,7 +82,7 @@ return [
     'illegal image files'                                       => '非法图片文件',
     'extensions to upload is not allowed'                       => '上传文件后缀不允许',
     'mimetype to upload is not allowed'                         => '上传文件MIME类型不允许!',
-    'filesize not match'                                        => '上传文件大小不符!',
+    'filesize not match'                                        => '上传文件大小不符!最大允许上传:%sM',
     'directory {:path} creation failed'                         => '目录 {:path} 创建失败!',
 
     // Validate Error Message

+ 1 - 1
thinkphp/library/think/File.php

@@ -219,7 +219,7 @@ class File extends SplFileObject
 
         /* 检查文件大小 */
         if (isset($rule['size']) && !$this->checkSize($rule['size'])) {
-            $this->error = 'filesize not match'.$this->getSize();
+            $this->error = 'filesize not match';
             return false;
         }