You can use file dropper widget, you have options to create a microflow before /after upload.
https://marketplace.mendix.com/link/component/111497
Assumptions is that you have created an entity which inherits from filedocuments. You could then use an after create action or indeed an on change action on this entity to do your own stuff.
Regards,
Ronald