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.

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"

Request Body​

multipart/form-data

Image to store

Format"binary"

Responses​

OK

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

Playground​

Server
Authorization
Headers
Variables
Key
Value
Body

Samples​

Released under the Apache-2.0 License.