generate a failed event for an upload other than images, audios and videos

Hi… i am uploading images, audios and videos … while uploading other formats are also uploading but i dont want other formats to be uploaded. How to raise a failed event when user upload a file other than images , audios and videos

please see the reply in
this thread.