1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- <?php
- return array
- (
- 'name' => '上传规则',
- # 数据结构
- 'struct' => array
- (
- 'name' => array
- (
- 'name' => '规则名称',
- 'type' => 'varchar(24)',
- ),
- 'save_id' => array
- (
- 'name' => '存储位置',
- 'type' => 'int(11)',
- 'default' => '1',
- 'value' => 'upload/save',
- ),
- 'type' => array
- (
- 'name' => '类型',
- 'type' => 'varchar(30)',
- 'value' => array
- (
- 1 => '图片',
- 2 => '音频',
- 3 => '视频',
- 4 => 'office文件',
- 5 => 'pdf文件',
- 6 => '压缩包',
- 7 => '证书',
- 8 => '可执行文件',
- ),
- 'control' => true,
- ),
- 'chunk' => array
- (
- 'name' => '分片大小',
- 'type' => 'varchar(11)',
- 'default' => '5',
- ),
- 'size' => array
- (
- 'name' => '限制大小',
- 'type' => 'varchar(11)',
- 'default' => '2',
- ),
- 'limit' => array
- (
- 'name' => '宽高限制',
- 'type' => 'tinyint(1)',
- 'value' => array
- (
- 1 => '不限制',
- 2 => '高度小于宽度-横图',
- 3 => '高度大于宽度-竖图',
- ),
- 'default' => '1',
- ),
- 'min_width' => array
- (
- 'name' => '最小宽度',
- 'type' => 'varchar(11)',
- 'default' => '0',
- ),
- 'min_height' => array
- (
- 'name' => '最小高度',
- 'type' => 'varchar(11)',
- 'default' => '0',
- ),
- ),
- 'default' => array
- (
- 'field' => 'id,name,type,cdate',
- 'value' => array
- (
- '1,"图片",1,' . DEVER_TIME,
- '2,"音频",2,' . DEVER_TIME,
- '3,"视频",3,' . DEVER_TIME,
- '4,"office文件",4,' . DEVER_TIME,
- '5,"pdf文件",5,' . DEVER_TIME,
- '6,"裁剪图片",1,' . DEVER_TIME,
- '7,"用户上传图片",1,' . DEVER_TIME,
- ),
- ),
- );
|