Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Abort of the file uploading #12

Closed
mutyonok opened this issue Apr 22, 2010 · 2 comments
Closed

Abort of the file uploading #12

mutyonok opened this issue Apr 22, 2010 · 2 comments
Labels

Comments

@mutyonok
Copy link

How can one abort the file uploading?
I'm saving the XHR object that comes in beforeSubmit function, but calling .abort() method seems doing nothing (i still get the file and business-logic running on my server)

any thoughts?

@ArnaudD
Copy link

ArnaudD commented Jun 24, 2010

Hello,
This may be interesting : http://www.sencha.com/forum/showthread.php?38613-File-Upload-Cancel

I modified the abort function like this and it seems to work :

abort: function() {
   this.aborted = 1;
   if (/msie/.test (navigator.userAgent.toLowerCase()))
       io.src = 'about:blank'; // abort op in progress
   io.parentNode.removeChild(io);
}

I will try to do more tests and keep you updated

@malsup
Copy link
Collaborator

malsup commented May 27, 2011

Fixed.

@malsup malsup closed this as completed May 27, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants