Hi,
I’ve managed to get a hook on postWrite with getRootFolder(). But: I only get the preview files, like: Triggered by File: /appdata_occ29atjydmc/preview/325
Not for the file under data//
why is that?
Greetings,
Björn
Hi,
I’ve managed to get a hook on postWrite with getRootFolder(). But: I only get the preview files, like: Triggered by File: /appdata_occ29atjydmc/preview/325
Not for the file under data//
why is that?
Greetings,
Björn
with no means of disrepect, but: the documentation is awful.
Using IRootFolder doesn’t work.
just add
\<types\> \<filesystem/\> \</types\>
in your info.xml
then you use something like
Util::connectHook('OC_Filesystem', 'post_update', 'OCA\MattermostWebhook\FilesHooks', 'fileUpdate');
this is the only way I got working in Nextcloud 14
Greetings,
Björn