Skip to content
Browse files

Do not start canceled uploads that have not been started at the time …

…of cancelation.
  • Loading branch information...
1 parent 8bfc13f commit fbc0f9edae6287b9529de7e16489bd112cb979a8 @cpojer cpojer committed Nov 14, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 JavaScript/API/index.js
View
5 JavaScript/API/index.js
@@ -196,6 +196,11 @@ API.upload = function(url, file, field) {
};
queue.chain(function() {
+ if (canceled) {
+ this.next();
+ return;
+ }
+
transfer = new window.FileTransfer();
transfer.onprogress = function(event) {
progress = event.loaded;

0 comments on commit fbc0f9e

Please sign in to comment.
Something went wrong with that request. Please try again.