20 lines
1.1 KiB
JSON
Executable File
20 lines
1.1 KiB
JSON
Executable File
/* 前后端通信相关的配置,注释只允许使用多行方式 */
|
||
{
|
||
/* 上传图片配置项 */
|
||
"imageActionName": "uploadimage", /* 执行上传图片的action名称 */
|
||
"imageFieldName": "upfile", /* 提交的图片表单名称 */
|
||
"imageMaxSize": 2048000, /* 上传大小限制,单位B */
|
||
"imageAllowFiles": [".png", ".jpg", ".jpeg", ".gif", ".bmp"], /* 上传图片格式显示 */
|
||
"imageCompressEnable": true, /* 是否压缩图片,默认是true */
|
||
"imageCompressBorder": 1600, /* 图片压缩最长边限制 */
|
||
"imageInsertAlign": "none", /* 插入的图片浮动方式 */
|
||
"imageUrlPrefix": "", /* 图片访问路径前缀 */
|
||
"imagePathFormat": "/ueditor/php/upload/image/{yyyy}{mm}{dd}/{time}{rand:6}",
|
||
"videoActionName": "uploadvideo",
|
||
"videoFieldName": "upfile",
|
||
"videoPathFormat": "/ueditor/php/upload/video/{yyyy}{mm}{dd}/{time}{rand:6}",
|
||
"videoUrlPrefix": "",
|
||
"videoMaxSize": 102400000,
|
||
"videoAllowFiles": [".flv", ".swf", ".mkv", ".avi", ".rm", ".rmvb", ".mpeg", ".mpg",".ogg", ".ogv", ".mov", ".wmv", ".mp4", ".webm", ".mp3", ".wav", ".mid"]
|
||
|
||
} |