Upload.json 1.1 KB

123456789101112131415161718192021
  1. {
  2. "$schema": "https://gitee.com/dotnetchina/Furion/raw/v4/schemas/v4/furion-schema.json",
  3. "Upload": {
  4. "Path": "Upload/{yyyy}/{MM}/{dd}", // 文件上传目录
  5. "MaxSize": 20480, // 文件最大限制KB:1024*20
  6. "ContentType": [ "image/jpg", "image/png", "image/jpeg", "image/gif", "image/bmp", "text/plain", "application/pdf", "application/msword", "application/vnd.ms-excel", "application/vnd.ms-powerpoint", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "video/mp4", "application/wps-office.docx", "application/wps-office.xlsx" ],
  7. "EnableMd5": false // 启用文件MDF5验证-防止重复上传
  8. },
  9. "OSSProvider": {
  10. "IsEnable": false,
  11. "Provider": "Minio", // OSS提供者 Invalid/Minio/Aliyun/QCloud/Qiniu/HuaweiCloud
  12. "Endpoint": "xxx.xxx.xxx.xxx:8090", // 节点/API地址(在腾讯云OSS中表示AppId)
  13. "Region": "xxx.xxx.xxx.xxx", // 地域
  14. "AccessKey": "",
  15. "SecretKey": "",
  16. "IsEnableHttps": false, // 是否启用HTTPS
  17. "IsEnableCache": true, // 是否启用缓存
  18. "Bucket": "admin.net"
  19. }
  20. }