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.

Authorizations​

tokenParam

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

Type
API Key (query: _token)

Parameters​

Header Parameters

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).

Type
string
Required
Format
"string"

Path Parameters

erupt*

Simple class name of the @Erupt model

Type
string
Required
Format
"string"
field*

Field name with edit type HTML_EDITOR

Type
string
Required
Format
"string"

Query Parameters

callback

JSONP callback name for the configuration request

Type
string
Format
"string"
file

Image to store

Type
string
Format
"binary"

Responses​

OK

*/*
JSON
[
]

Playground​

Server
Authorization
Headers
Variables
Key
Value

Samples​

Released under the Apache-2.0 License.