Sanitize file name¶
Available since: 1.0.0
Fires during a file upload that lets subscribers sanitize the filename.
Provided tokens
| Token | Description |
|---|---|
[event] |
The event. |
[event:machine_name] |
The machine name of the ECA event. |
[session_user] |
The user account that dispatched the event, regardless if ECA is processing models under a different account. This is only available if ECA is configured to always run under a specific account. |
Fires during a file upload to allow sanitizing or renaming the uploaded filename. Useful for enforcing naming conventions, removing special characters, or adding prefixes to uploaded files.