cxhxy/addons/upload/config.php
2023-11-21 15:14:59 +08:00

1 line
1.5 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
return [
[
'name' => 'storage',
'title' => '默认存储:',
'type' => 'radio',
'attribute' => [
'required' => true,
'disabled' => false,
],
'options' => [
'local' => '本地',
'qcloud' => '腾讯云',
'aliyun' => '阿里云',
'qiniu' => '七牛云'
],
'msg' => '',
'value' => 'local'
],
[
'name' => 'file_ext',//参数名称
'title' => '文件类型:', //显示标题
'type' => 'text', //表单元素类型 - 文本框
//属性
'attribute' => [
'placeholder' => '请输入允许上传图片的类型',
'maxlength' => '',//可输入最大长度
'required' => false,//是否必填
'disabled' => false,//是否禁用
],
'msg' => '本地存储有效。建议填写jpg,jpeg,png,bmp,gif多个以英文状态逗号隔开',//提示内容
'value' => 'jpg,jpeg,png,bmp,gif',//初始值
],
[
'name' => 'file_size',//参数名称
'title' => '上传大小:', //显示标题
'type' => 'text', //表单元素类型 - 文本框
//属性
'attribute' => [
'placeholder' => '',
'maxlength' => '',//可输入最大长度
'required' => false,//是否必填
'disabled' => false,//是否禁用
],
'msg' => '本地存储有效。建议填写2允许上传最大文件单位M',//提示内容
'value' => '2',//初始值
]
];