Shared file downloaded event

Hello,

I’m looking for an event fired when a shared file has been viewed or downloaded.

The use case is, that I would like to handle the situation when another user downloads a file that I share with him. I’m listening to events via dispatcher as is advised here: https://docs.nextcloud.com/server/latest/developer_manual/basics/events.html#writing-a-listener.

Thank you very much for your help.

SGAA

Sorry i do not have a solution and i also do not know the reason for your issue.

But perhaps you only want promptly delete the shared files. With Nextcloud 24 you can set Custom Permissions on sharing that the receiver can delete the files on his own. Read this.

Hi devnull,

Thank you for your reaction. The reason is that I would like to call my custom service (API endpoint) when the file is downloaded.

SGAA