Skip to content

Commit ace155d

Browse files
committed
Prevent unwanted progress event on chunked uploads. Closes blueimp#2082.
1 parent ecc50f0 commit ace155d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

js/jquery.fileupload.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* jQuery File Upload Plugin 5.21.1
2+
* jQuery File Upload Plugin 5.21.2
33
* https://github.com/blueimp/jQuery-File-Upload
44
*
55
* Copyright 2010, Sebastian Tschan
@@ -648,8 +648,8 @@
648648
},
649649

650650
_onDone: function (result, textStatus, jqXHR, options) {
651-
if (!this._isXHRUpload(options) || !options.loaded ||
652-
options.loaded < options.total) {
651+
if (!options.uploadedBytes && (!this._isXHRUpload(options) ||
652+
!options.loaded || options.loaded < options.total)) {
653653
var total = this._getTotal(options.files) || 1;
654654
// Create a progress event for each iframe load,
655655
// or if there has been no progress event with

0 commit comments

Comments
 (0)