diff --git a/server/Application/Api/Controller/AttachmentController.class.php b/server/Application/Api/Controller/AttachmentController.class.php
index 8b882392..2bf3057b 100644
--- a/server/Application/Api/Controller/AttachmentController.class.php
+++ b/server/Application/Api/Controller/AttachmentController.class.php
@@ -94,7 +94,7 @@ class AttachmentController extends BaseController {
 
         $upload = new \Think\Upload();// 实例化上传类
         $upload->maxSize  = 1003145728 ;// 设置附件上传大小
-        $upload->allowExts  = array('jpg', 'gif', 'png', 'jpeg');// 设置附件上传类型
+        $upload->exts  = array('jpg', 'gif', 'png', 'jpeg');// 设置附件上传类型
         $upload->rootPath = './../Public/Uploads/';// 设置附件上传目录
         $upload->savePath = '';// 设置附件上传子目录
         $info = $upload->uploadOne($_FILES['editormd-image-file']) ;
