upload.php 994 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | 上传配置
  4. // +----------------------------------------------------------------------
  5. return [
  6. //默认上传模式
  7. 'default' => 'local',
  8. //上传文件大小
  9. 'filesize' => 2097152,
  10. //上传文件后缀类型
  11. 'fileExt' => ['jpg', 'jpeg', 'png', 'gif', 'pem', 'mp3', 'wma', 'wav', 'amr', 'mp4', 'key'],
  12. //上传文件类型
  13. 'fileMime' => ['image/jpeg', 'image/gif', 'image/png', 'text/plain', 'audio/mpeg'],
  14. //驱动模式
  15. 'stores' => [
  16. //本地上传配置
  17. 'local' => [],
  18. //七牛云上传配置
  19. 'qiniu' => [
  20. 'accessKey' => 'K-P9_cqutGZOchFKMMaNPStTQLnTP-xer97Qe2ug',
  21. 'secretKey' => 'R_WUyYNp7K1CI8w5yqqVnQ0pOAQfE_E7cQ4nkZI2',
  22. 'uploadUrl' => 'imgs.boofly.cn',
  23. 'storageName' => 'live-product',
  24. 'storageRegion' => 's3-cn-south-1.qiniucs.com'
  25. ]
  26. ]
  27. ];