Error Recovery
Handle upload errors gracefully and offer automatic retry using the onTaskError callback.
Drag & drop files here
Error log will appear here...
var uploader = new MultipleUpload(document.getElementById('myUploader'), {
uploadUrl: '/api/upload',
maxRetries: 3,
retryDelay: 2000,
onTaskError: function(task, error) {
console.log('Error on file: ' + task.name + ' �?' + error.message);
// task.retry() is called automatically when maxRetries > 0
},
onTaskRetry: function(task, attempt) {
console.log('Retry attempt ' + attempt + ' for ' + task.name);
}
});