upload.php 851 B

1234567891011121314151617181920212223242526
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | 上传配置
  4. // +----------------------------------------------------------------------
  5. return [
  6. //默认上传模式
  7. 'default' => 'local',
  8. //上传文件大小
  9. 'filesize' => 21474836480000,
  10. //上传文件后缀类型
  11. 'fileExt' => ['jpg', 'jpeg', 'png', 'gif', 'pem', 'mp3', 'wma', 'wav', 'amr', 'mp4', 'apk'],
  12. //上传文件类型
  13. 'fileMime' => ['image/jpeg', 'image/gif', 'image/png', 'text/plain', 'audio/mpeg', 'application/vnd.android.package-archive', 'application/vnd.android'],
  14. //驱动模式
  15. 'stores' => [
  16. //本地上传配置
  17. 'local' => [],
  18. //七牛云上传配置
  19. 'qiniu' => [],
  20. //oss上传配置
  21. 'oss' => [],
  22. //cos上传配置
  23. 'cos' => [],
  24. ]
  25. ];