CRMEB_PRO_M/config/upload.php

58 lines
1.7 KiB
PHP
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
// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------
return [
//默认上传模式
'default' => 'local',
//上传文件大小
'filesize' => 2097152,
//上传文件后缀类型
'fileExt' => ['jpg', 'jpeg', 'png', 'gif', 'pem', 'mp3', 'wma', 'wav', 'amr', 'mp4', 'key', 'xlsx', 'xls', 'video/mp4'],
//上传文件类型
'fileMime' => [
'image/jpeg',
'image/gif',
'image/png',
'text/plain',
'audio/mpeg',
'application/octet-stream',
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
'application/vnd.ms-works',
'application/vnd.ms-excel',
'application/zip',
'application/vnd.ms-excel',
'application/vnd.ms-excel',
'text/xml',
],
//驱动模式
'stores' => [
//本地上传配置
'local' => [],
//七牛云上传配置
'qiniu' => [
],
//oss 阿里云上传配置
'oss' => [
],
//cos 腾讯云上传配置
'cos' => [
],
//oss 京东云
'jdoss' => [
],
//oss 华为云
'obs' => [
],
//oss 天翼云
'tyoss' => [
],
]
];