Error Handling

Error Display and Recovery

Handle upload errors gracefully with user-friendly error messages and recovery options. Errors can be retried, skipped, or the entire queue can be cancelled.

Drag & drop files here, or paste from clipboard
<au:AjaxFileUpload ID="Uploader1" runat="server"
 AllowMultiple="true"
 MaxRetries="2"
 ShowProgress="true" />

// JavaScript error handling
var uploader = AjaxUploader.getInstance('Uploader1');
if (uploader) {
 uploader.on('taskError', function(task, error) {
  showError(task.fileName, error);
  // Options: retry, skip, or cancel
 });
 uploader.on('error', function(error) {
  showError('Upload', error);
 });
}

function retryFailed() {
 uploader.retryAll();
}