Added 'uploadFailed' event