Skip to content

Set file download access result

Plugin ID: eca_access_set_file_download_result

Available since: 3.1.3

Only works when reacting upon ECA File download event.

Fields

Headers — config key: headers

List of HTTP headers.
Enter one per line in the format Header-Name:value, or enable YAML format below.
Example:
Content-Disposition: attachment; filename="config.tar.gz"
Origin: https://ecaguide.org/

This field supports tokens.

Type: textarea · Required: no · Default: empty string

Interpret above value as YAML format — config key: use_yaml

Nested data can be set using YAML format, for example Content-Type: "text/html; charset=UTF-8". When using this format, this option needs to be enabled. When using tokens and YAML altogether, make sure that tokens are wrapped as a string. Example: Content-Type: "[content_type]"

Type: checkbox · Required: no · Default: false

Validate YAML to prevent this from being executed when invalid — config key: validate_yaml

Type: checkbox · Required: no · Default: false

Access result — config key: access_result

Please note: This action only works when reacting upon ECA File download events.
When using the "Defined by token" option, make sure there is a token with this name: eca_access_set_file_download_result_access_result

Type: select · Required: no · Default: forbidden

Allowed values: forbidden, neutral, allowed, _eca_token, ''