You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

30 lines
549 B

  1. <?php
  2. //上传配置
  3. return [
  4. /**
  5. * 上传地址,默认是本地上传
  6. */
  7. 'uploadurl' => 'ajax/upload',
  8. /**
  9. * CDN地址
  10. */
  11. 'cdnurl' => '',
  12. /**
  13. * 文件保存格式
  14. */
  15. 'savekey' => '/uploads/{year}{mon}{day}/{filemd5}{.suffix}',
  16. /**
  17. * 最大可上传大小
  18. */
  19. 'maxsize' => '10mb',
  20. /**
  21. * 可上传的文件类型
  22. */
  23. 'mimetype' => 'jpg,png,bmp,jpeg,gif,zip,rar,xls,xlsx,csv',
  24. /**
  25. * 是否支持批量上传
  26. */
  27. 'multiple' => false,
  28. ];