is it possible to cancel AjaxUpload during OnSubmit, for example:
var file_uploader = new window.AjaxUpload(
'wall-file-upload',
{ action: 'attach_something',
name: 'userfile',
onSubmit: function(file,ext) { if(something){cancel_upload();} },
}
);
So cancel upload is executed at onSubmit. Is this possible?
You can use abort() function on jQuery ajax object, but you have to understand, that the request will be processed by the server anyway.