allocatr/application/extra/upload.php
2025-04-17 14:49:27 +08:00

50 lines
968 B
PHP
Executable File
Raw 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
//上传配置
return [
/**
* 上传地址,默认是本地上传
*/
'uploadurl' => 'ajax/upload',
/**
* CDN地址
*/
'cdnurl' => get_addon_config('alioss')['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,
/**
* 上传超时时长这里仅用于JS上传超时控制
*/
'timeout' => 60000,
/**
* 是否支持分片上传
*/
'chunking' => false,
/**
* 默认分片大小
*/
'chunksize' => 2097152,
/**
* 完整URL模式
*/
'fullmode' => false,
/**
* 缩略图样式
*/
'thumbstyle' => '',
];