I'm wondering if it is possible for moodle to receive files from external service, and 'assign' it to an activity module that already exists.
To put into perspective, my activity module's flow is : User creates an activity module (and attach a file in it) -> the file is sent to a webservice using adhoc task after the user saved the file -> the webservice processes the file -> the webservice then uploads the processed file to the activity module that the user has created.
I've tried looking into https://docs.moodle.org/dev/Web_services_files_handling but it confused me...
Thank you in advance.