Skip to content

UEditor endpoint: configuration and image upload.​

GET
/erupt-api/file/upload-ueditor/{erupt}/{field}

Without a file it returns the UEditor config (optionally wrapped in the JSONP callback); with a multipart "file" part it behaves like upload-html-editor and answers in the UEditor response format. Token in the _token query parameter.

授权​

tokenParam

The same login token as a query parameter, for endpoints opened by the browser or an editor that cannot set headers.

类型
API Key (query: _token)

参数​

请求头参数

erupt*

Name of the @Erupt class the request is scoped to. Must match the {erupt} path segment, or name the parent erupt when the path addresses a nested erupt (tab, sub-form, reference).

类型
string
必填
格式
"string"

路径参数

erupt*

Simple class name of the @Erupt model

类型
string
必填
格式
"string"
field*

Field name with edit type HTML_EDITOR

类型
string
必填
格式
"string"

查询参数

callback

JSONP callback name for the configuration request

类型
string
格式
"string"
file

Image to store

类型
string
格式
"binary"

响应​

OK

*/*
JSON
[
]

试验场​

服务器
授权
请求头
变量
键
值

示例​

Released under the Apache-2.0 License.