Display error message to web user after failed file upload

I have a form for the web containing a file upload control. When the user tries to upload a file infected by a virus, it is caught by anti-virus software on the server and deleted - which is good. However, the form is reloaded in the browser, the uploaded file is not attached obviously, but no message is given as to why.

I have searched this forum for how to trap this so that the user can be given a message as to what happened but have not found any real answers. There has got to be somebody doing this - I would love to hear how. Thanks

Subject: Display error message to web user after failed file upload

Just a thought…if the upload is not created, than the field to hold the upload should be empty. Right! If this is true, then run another $$Return formula noting the file upload did not occur.

Subject: RE: Display error message to web user after failed file upload

Thanks for the idea. It might not necessarily be empty because they coule be uploading multiple files, but by adding a counter field for attempted uploads, I could compare it with the number of attachments and if not equal then the last attempt failed. Thanks again.