files_downloadactivity
files_downloadactivity copied to clipboard
OC_Filesystem - Hook - Read - not fired when opening a file...
trafficstars
Even with the "updated" lines to be compatible to NC 28, there is a problem with the connectHook in Application.php...
Steps to reproduce
- Install the App with updated lines.
- Open a file over a shared link (no download)
- See the activities - there will be no entry
Expected behaviour
I think there should be an entry in the activites, like someone is downloading the file.
Actual behaviour
No activity is written to the history.
Server configuration
Linux, PHP8.2, NC28
Util::connectHook('OC_Filesystem', 'read', $this, 'listenReadFile');
I'm able to fire the event, by placing it in the register-function and using "$context->registerEventListener", but I have no idea how to complete the function.