Catch file upload hook

I am new to NC and I would like to know how to run a custom function when the user starts and finishes a file upload.