We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 25a1c48 + 883241b commit 6589b45Copy full SHA for 6589b45
js/jquery.fileupload.js
@@ -730,7 +730,7 @@
730
promise = dfd.promise(),
731
jqXHR,
732
upload;
733
- if (!(this._isXHRUpload(options) && slice && (ub || mcs < fs)) ||
+ if (!(this._isXHRUpload(options) && slice && (ub || ($.type(mcs) === 'function' ? mcs(options) : mcs) < fs)) ||
734
options.data) {
735
return false;
736
}
@@ -753,7 +753,7 @@
753
o.blob = slice.call(
754
file,
755
ub,
756
- ub + mcs,
+ ub + ($.type(mcs) === 'function' ? mcs(o) : mcs),
757
file.type
758
);
759
// Store the current chunk size, as the blob itself
0 commit comments