Skip to content

Commit 442856e

Browse files
committed
Fixed a bug in multi file uploads displaying the last preview image for all files.
1 parent a9f5e12 commit 442856e

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

js/jquery.fileupload-ui.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* jQuery File Upload User Interface Plugin 6.5.1
2+
* jQuery File Upload User Interface Plugin 6.5.2
33
* https://github.com/blueimp/jQuery-File-Upload
44
*
55
* Copyright 2010, Sebastian Tschan
@@ -385,10 +385,9 @@
385385

386386
_renderPreviews: function (files, nodes) {
387387
var that = this,
388-
options = this.options,
389-
file;
388+
options = this.options;
390389
nodes.find('.preview span').each(function (index, element) {
391-
file = files[index];
390+
var file = files[index];
392391
if (options.previewSourceFileTypes.test(file.type) &&
393392
($.type(options.previewSourceMaxFileSize) !== 'number' ||
394393
file.size < options.previewSourceMaxFileSize)) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "blueimp-file-upload",
3-
"version": "6.5.1",
3+
"version": "6.5.2",
44
"title": "jQuery File Upload",
55
"description": "File Upload widget with multiple file selection, drag&drop support, progress bars and preview images for jQuery. Supports cross-domain, chunked and resumable file uploads and client-side image resizing. Works with any server-side platform (PHP, Python, Ruby on Rails, Java, Node.js, Go etc.) that supports standard HTML form file uploads.",
66
"keywords": [

0 commit comments

Comments
 (0)