Browse Source

Merge pull request #1059 from plzmyy/master

star7th 4 years ago
parent
commit
189b6cedc0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      server/Application/Home/Controller/PageController.class.php

+ 1 - 1
server/Application/Home/Controller/PageController.class.php

@@ -148,7 +148,7 @@ class PageController extends BaseController {
         }else{
             $upload = new \Think\Upload();// 实例化上传类
             $upload->maxSize  = 3145728 ;// 设置附件上传大小
-            $upload->allowExts  = array('jpg', 'gif', 'png', 'jpeg');// 设置附件上传类型
+            $upload->exts  = array('jpg', 'gif', 'png', 'jpeg');// 设置附件上传类型
             $upload->rootPath = './Public/Uploads/';// 设置附件上传目录
             $upload->savePath = '';// 设置附件上传子目录
             $info = $upload->upload() ;