Skip to content

ev4 CMS Upload

The ev4cms Upload module allows uploading files (images) to the ev4 CMS in base64 format. It reads a local file from the server, converts it to base64 and sends it as a JSON payload to the configured endpoint. It is ideal for automating the upload of product images, banners or other multimedia resources to the ev4 CMS within a workflow.

ParameterTypeRequiredDescription
urltextYesUpload endpoint URL (supports {{variable}} variables)
credentials_idcredentialsNoCMS access credentials
sslVerifybooleanNoVerify SSL certificate (default: false)
dataKeytextNoData key
_typeFilestextNoFile type for the POST
filesarrayNoFile configuration: array with key (data field containing the path) and name (field name)

The credential must contain the fields:

  • username: Username for basic authentication
  • password: Password for basic authentication
{
"nextModule": "siguiente_modulo",
"data": {
"id": "456",
"url": "https://cdn.ejemplo.com/imagen.jpg"
},
"_meta_": {
"status": 200,
"url": "https://miempresa.ev4erp.net/api/upload",
"headers": {}
}
}
{
"url": "https://miempresa.ev4erp.net/api/cms/upload",
"credentials_id": "cred_ev4_01",
"files": [
{ "key": "local_image_path", "name": "file" }
]
}
  • ev4 CMS endpoint configured in the url field
  • Sends a JSON payload with id, filename and base64 (data URI)
  • Supports dynamic variables {{variable}} in the URL
  • http:// URLs are automatically converted to https://
  • The file is sent as base64 with prefix data:image/jpeg;base64,
  • If the file does not exist at the specified path, the module returns an error
  • The files field allows configuring the file path from the workflow data
  • The associated resource id is taken from data.id
  • ev4cms (ev4 content management)
  • ev4Client (ev4 ERP data access)