In the universal Email server behavior, set the trigger for sending the message to All Upload Successful.
you can show a message that the upload failed by adding the following code to your page:
<?php if ($_SERVER["REQUEST_METHOD"] == "POST" && (!WA_DFP_AllUploadsSuccess())) { ?>
File Upload failed.
<?php } ?>