Skip to content

Image upload for an HTML_EDITOR field.​

POST
/erupt-api/file/upload-html-editor/{erupt}/{field}

Multipart form field "upload"; token in the _token query parameter. The url is prefixed with the AttachmentProxy file domain when one is registered.

授权​

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"

请求体​

multipart/form-data

Image to store

格式"binary"

响应​

OK

*/*
JSON
{
  
"any object": {
  
}
}

试验场​

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

示例​

Released under the Apache-2.0 License.