upload.php 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2016~2024 https://www.crmeb.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  8. // +----------------------------------------------------------------------
  9. // | Author: CRMEB Team <admin@crmeb.com>
  10. // +----------------------------------------------------------------------
  11. // +----------------------------------------------------------------------
  12. // | 上传配置
  13. // +----------------------------------------------------------------------
  14. return [
  15. //默认上传模式
  16. 'default' => 'local',
  17. //上传文件大小
  18. 'filesize' => 52428800,
  19. //上传文件后缀类型
  20. 'fileExt' => [
  21. 'jpg',
  22. 'jpeg',
  23. 'png',
  24. 'gif',
  25. 'webp',
  26. 'pem',
  27. 'mp3',
  28. 'wma',
  29. 'wav',
  30. 'amr',
  31. 'mp4',
  32. 'key',
  33. 'xlsx',
  34. 'xls',
  35. 'ico',
  36. 'avif',
  37. 'txt'
  38. ],
  39. //上传文件类型
  40. 'fileMime' => [
  41. 'image/jpg',
  42. 'image/jpeg',
  43. 'image/gif',
  44. 'image/png',
  45. 'text/plain',
  46. 'audio/mpeg',
  47. 'video/mp4',
  48. 'application/octet-stream',
  49. 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
  50. 'application/vnd.ms-works',
  51. 'application/vnd.ms-excel',
  52. 'application/zip',
  53. 'application/vnd.ms-excel',
  54. 'application/vnd.ms-excel',
  55. 'text/xml',
  56. 'image/x-icon',
  57. 'image/vnd.microsoft.icon',
  58. 'application/x-x509-ca-cert',
  59. ],
  60. //驱动模式
  61. 'stores' => [
  62. //本地上传配置
  63. 'local' => [],
  64. //七牛云上传配置
  65. 'qiniu' => [],
  66. //oss上传配置
  67. 'oss' => [],
  68. //cos上传配置
  69. 'cos' => [],
  70. //obs华为储存
  71. 'obs' => [],
  72. //ucloud存储
  73. 'us3' => [],
  74. //jd
  75. 'jdoss' => [],
  76. //天翼云
  77. 'ctoss' => [],
  78. ],
  79. 'iamge_fileExt' => ['jpg', 'jpeg', 'png', 'gif','webp','avif'],
  80. //上传文件类型
  81. 'image_fileMime' => ['image/jpeg', 'image/gif', 'image/png','image/webp', 'image/avif'],
  82. ];