通知短信+运营短信,5秒速达,支持群发助手一键发送🚀高效触达和通知客户 广告
>[danger] 友情提示:构建器目前只支持HisiPHP Pro版本([我要升级](https://www.hisiphp.com/authorize.html)) ## 文件(file) | 参数 | 类型 | 必须 | 默认 | 说明 | --- | --- | --- | --- | --- | | type | string | Y | | 固定值:file | | name | string | Y | | 字段名称 | | title | string | Y | | 标题 | | grid | Array | N | [12, 12, 12, 12] | [栅格布局](栅格布局.md)| | url | string | N | 当前控制的upload方法 | 文件上传接口 | | exts | string | N | | 允许上传的文件后缀,多个后缀用`|`隔开 | | tips | string | N | | 提示说明 | | disabled | bool | N | | 定义disabled属性 | | verify | string | N | | layui表单验证规则,[规则文档](https://www.layui.com/doc/modules/form.html#verify) | >[info] ![](https://img.kancloud.cn/63/7d/637d10865fdb4153d8cfdd5d7f024bef_742x61.png) >[]示例代码: ``` $assign['buildForm']['items'] = [ [ 'type' => 'file', 'title' => '文件', 'name' => 'file', 'verify' => 'required', 'exts' => 'doc|docx|xls|xlsx', 'url' => url('upload'), 'tips' => '允许上传的后缀:doc,docx,xls,xlsx', ], // 更多表单项.... ]; $this->assign($assign); ```