I'm trying to implement cancel action for file upload plugin and have some issue with aborting jqXHR
request.
$('#filedd').fileupload({
dataType: 'json',
url: "",
progress: function (e, data) {},
add: function(e, data) {
req = data.submit();
setTimeout(function(){
req.abort();
}, 100)
}
);
And I get result that
req has not method 'abort'
I've tried other options like reject()
it's OK, but it doesn't cancel the upload (break request).
Any ideas what is wrong here?