You must create an action:
https://docs.openkm.com/kcenter/view/ok ... ction.html
* This action must be linked with a DOWNLOAD event and I observe in the current CE we still have not added -> the code should be extended to be able to intercept the event.