This event fires if some error occurred during the current upload session.
<script type="text/javascript">
function Uploader1_Error(errorCode, httpResponseCode, errorPage, additionalInfo){
//...your code...
}
</script>
<aur:Uploader ID="Uploader1" runat="server">
<ClientEvents>
<aur:ClientEvent EventName="Error" HandlerName="Uploader1_Error" />
</ClientEvents>
</aur:Uploader>
<script type="text/javascript">
function Uploader1_Error(errorCode, httpResponseCode, errorPage, additionalInfo){
//...your code...
}
</script>
<?php
$Uploader = new Uploader("Uploader1");
//...other params...
$Uploader->getClientEvents()->setError("Uploader1_Error");
//...other params...
$Uploader->render();
?>
function Uploader1_Error(errorCode, httpResponseCode, errorPage, additionalInfo){
//...your code...
}
$au.uploader({
events: {
//...other params...
error: [Uploader1_Error],
//...other params...
}
})
Type: Number
One of the following values:
false
);Type: Number
The HTTP error code received from the server (if any).
Type: String
The web page containing error description, returned from the server (if any).
Type: String
Text message that can be displayed to the user.
This event allows you to handle errors which can occur during the upload.