Chunk Retry

Demo uploads land in a temporary store and are swept after 60 minutes. To keep files, handle FileUploaded — see Single File for the complete save pattern.
Automatic Retry on Chunk Failure

When a chunk fails to upload due to a network error, AjaxUploader automatically retries the failed chunk. Configure the number of retry attempts and delay between retries.

What you should see: 1 MB chunks with up to 3 retries, 2 s apart (adjustable with the selector). Kill your network mid-upload and only the failed chunk is resent - the log shows each retry.
Drag & drop files here, or paste from clipboard
<au:AjaxFileUpload ID="Uploader1" runat="server"
 EnableChunkedUpload="true"
 ChunkSize="1048576"
 MaxRetries="3"
 RetryDelay="2000" />

// JavaScript API approach
AjaxUploader.create('#uploader', {
 uploadUrl: '/ajaxupload.axd/upload',
 chunkUrl: '/ajaxupload.axd/chunk',
 chunkCompleteUrl: '/ajaxupload.axd/chunk/complete',
 chunked: true,
 chunkSize: 1 * 1024 * 1024,
 retries: 3, // retry failed chunks up to 3 times
 onTaskProgress: function(task) {
 log('Chunk progress: ' + clampPercent(task.percent) + '%');
 },
 onTaskError: function(task, error) {
 log('Failed after retries: ' + error);
 }
});