Browse Source

修改文件上传配置

dygapp 6 years ago
parent
commit
946844e0f6
1 changed files with 3 additions and 0 deletions
  1. 3 0
      config/config.default.js

+ 3 - 0
config/config.default.js

@@ -37,6 +37,9 @@ module.exports = appInfo => {
     whitelist: [
       '.jpg', '.jpeg', // image/jpeg
       '.zip', '.rar', // 压缩文件
+      '.txt',
+      '.doc', '.docx', '.xls', '.xlsx', '.ppt', '.pptx',
+      '.dbf',
     ],
     fileSize: '5mb',
   };