Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Nextcloud notifications

I'm working in a project in which I need to record files information in the database whenever a file is added or modified so they remain synchronized. Those files are suposed to be stored in a Nextcloud server so, does Nextcloud have a way to notificate those changes (e.g. a webhook)? If it doesn't, could I achieve something similar using the webdav protocol?

like image 920
JDLK7 Avatar asked Dec 14 '25 23:12

JDLK7


1 Answers

Yes, there is a hook mechanism, see postCreate (\OCP\Files\Node $node) on https://docs.nextcloud.com/server/12/developer_manual/app/hooks.html

like image 193
Mathias Conradt Avatar answered Dec 16 '25 16:12

Mathias Conradt



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!