0

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?

ssilas777
  • 9,672
  • 4
  • 45
  • 68
Anton Igonin
  • 283
  • 2
  • 11

0 Answers0