HoW to raise Faild Event in UPLOAD component

Hi ,
I am using Image uploader to upload images in my application,but in this component user can upload not only Image file .He can upload vedios audio to restrict user by uploading this kind of format,(as well to raise failed event while he try to upload other than image files).
please help me