I want to execute a function of mine every time a file is uploaded.
by every time I mean not in a certain mod but any way a user can upload a file to moodle and no matter if it's via drag and drop, or through the filepicker or any other way.
I didn't find an Event or Callback for that.
is there a way to do that without modifying an of Moodle's core files?
there is a function named "process_upload" at /repository/upload/lib.php and I can modify that function but that of course would be a core modification.
I have moodle 3.8.1 installed