dggjimai/config/attachment.php

17 lines
599 B
PHP
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/**
* 附件配置
* @author yupoxiong<i@yufuping.com>
*/
return [
'thumb_path'=>'/static/attachment/thumbnail/',
'path' => app()->getRootPath() . 'public/uploads/attachment/', //上传目录配置(相对于根目录)
'url' => '/uploads/attachment/', //url相对于web目录
'validate' => [
//默认不超过50mb52428800
'size' => 10240, //demo改成了不超过10k
//常用后缀
'ext' => 'bmp,ico,psd,jpg,jpeg,png,gif,doc,docx,xls,xlsx,pdf,zip,rar,7z,tz,mp3,mp4,mov,swf,flv,avi,mpg,ogg,wav,flac,ape',
],
];