upload.php 841 B

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