diff --git a/app/api/controller/Index.php b/app/api/controller/Index.php index 4e1f607810a57ba9d31316d21a33de56d2de1d57..452ef118cb707d59339a6ac537a22147caa18091 100644 --- a/app/api/controller/Index.php +++ b/app/api/controller/Index.php @@ -51,7 +51,7 @@ class Index extends BaseController ]; $fileExt = $rule['image'] . ',' . $rule['doc'] . ',' . $rule['file'] . ',' . $rule['video']; //1M=1024*1024=1048576字节 - $fileSize = 100 * 1024 * 1024; + $fileSize = $file->getSize(); if (isset($param['type']) && $param['type']) { $fileExt = $rule[$param['type']]; }