Image / File upload failure

In file upload is there any middle flag or event to show error as “file upload failed” ? Because there are only to events available which are after successful upload of file.1. file received 2.uploads cleared