Skip to content
This repository has been archived by the owner on May 25, 2023. It is now read-only.

Commit

Permalink
Only submit files without errors. Closes #2770
Browse files Browse the repository at this point in the history
  • Loading branch information
blueimp authored and dougdomeny committed Dec 3, 2013
1 parent 84c5562 commit 46fea69
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions js/jquery.fileupload-angular.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* jQuery File Upload AngularJS Plugin 2.1.1
* jQuery File Upload AngularJS Plugin 2.1.2
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2013, Sebastian Tschan
Expand Down Expand Up @@ -62,7 +62,9 @@
};
});
file.$submit = function () {
return data.submit();
if (!file.error) {
return data.submit();
}
};
file.$cancel = function () {
return data.abort();
Expand Down

0 comments on commit 46fea69

Please sign in to comment.