Hi Martin,
Sorry, I thought from the original post that it would be clear:
'However, I also want to confirm that the file that has uploaded is a) verified to be uploaded and/or is comparable to the source file.
Ideally an error would generate a follow on action (call an email script etc) '
From my side, the code looks like it should upload the file and email on completion, or if there it is a failure it emails the message.
In testing it has worked when the file has not been present or a permissions issue, the only test I have not been able to perform is if the transmission is broken.
Thanks