qifengquan пре 1 година
родитељ
комит
04308c9f04
2 измењених фајлова са 2 додато и 2 уклоњено
  1. 1 1
      application/extra/upload.php
  2. 1 1
      thinkphp/library/think/File.php

+ 1 - 1
application/extra/upload.php

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

+ 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->error = 'filesize not match'.$this->getSize();
             return false;
         }