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.
46 lines
829 B
46 lines
829 B
3 weeks ago
|
<?php
|
||
|
|
||
|
//上传配置
|
||
|
return [
|
||
|
/**
|
||
|
* 上传地址,默认是本地上传
|
||
|
*/
|
||
|
'uploadurl' => 'ajax/upload',
|
||
|
/**
|
||
|
* CDN地址
|
||
|
*/
|
||
|
'cdnurl' => '',
|
||
|
/**
|
||
|
* 文件保存格式
|
||
|
*/
|
||
|
'savekey' => '/uploads/{year}{mon}{day}/{filemd5}{.suffix}',
|
||
|
/**
|
||
|
* 最大可上传大小
|
||
|
*/
|
||
|
'maxsize' => '10mb',
|
||
|
/**
|
||
|
* 可上传的文件类型
|
||
|
*/
|
||
|
'mimetype' => 'jpg,png,bmp,jpeg,gif,webp,zip,rar,wav,mp4,mp3,webm',
|
||
|
/**
|
||
|
* 是否支持批量上传
|
||
|
*/
|
||
|
'multiple' => false,
|
||
|
/**
|
||
|
* 是否支持分片上传
|
||
|
*/
|
||
|
'chunking' => false,
|
||
|
/**
|
||
|
* 默认分片大小
|
||
|
*/
|
||
|
'chunksize' => 2097152,
|
||
|
/**
|
||
|
* 完整URL模式
|
||
|
*/
|
||
|
'fullmode' => false,
|
||
|
/**
|
||
|
* 缩略图样式
|
||
|
*/
|
||
|
'thumbstyle' => '',
|
||
|
];
|