Skip to content

Commit 286e790

Browse files
committed
Adjust the max number of files inside of the resize callback. Fixes blueimp#1106.
1 parent cc6e8cd commit 286e790

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

js/jquery.fileupload-ui.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* jQuery File Upload User Interface Plugin 6.6.2
2+
* jQuery File Upload User Interface Plugin 6.6.3
33
* https://github.com/blueimp/jQuery-File-Upload
44
*
55
* Copyright 2010, Sebastian Tschan
@@ -81,9 +81,9 @@
8181
var that = $(this).data('fileupload'),
8282
options = that.options,
8383
files = data.files;
84-
that._adjustMaxNumberOfFiles(-files.length);
85-
data.isAdjusted = true;
8684
$(this).fileupload('resize', data).done(data, function () {
85+
that._adjustMaxNumberOfFiles(-files.length);
86+
data.isAdjusted = true;
8787
data.files.valid = data.isValidated = that._validate(files);
8888
data.context = that._renderUpload(files)
8989
.appendTo(options.filesContainer)

0 commit comments

Comments
 (0)