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.
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/chunk',
chunked: true,
chunkSize: 1 * 1024 * 1024,
retries: 3, // retry failed chunks up to 3 times
onTaskProgress: function(task) {
log('Chunk progress: ' + Math.round(task.percent) + '%');
},
onTaskError: function(task, error) {
log('Failed after retries: ' + error);
}
});