Skip to content

Commit

Permalink
Fixed a bug in multi file uploads displaying the last preview image f…
Browse files Browse the repository at this point in the history
…or all files.
  • Loading branch information
blueimp committed Feb 25, 2012
1 parent a9f5e12 commit 442856e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions js/jquery.fileupload-ui.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* jQuery File Upload User Interface Plugin 6.5.1
* jQuery File Upload User Interface Plugin 6.5.2
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2010, Sebastian Tschan
Expand Down Expand Up @@ -385,10 +385,9 @@

_renderPreviews: function (files, nodes) {
var that = this,
options = this.options,
file;
options = this.options;
nodes.find('.preview span').each(function (index, element) {
file = files[index];
var file = files[index];
if (options.previewSourceFileTypes.test(file.type) &&
($.type(options.previewSourceMaxFileSize) !== 'number' ||
file.size < options.previewSourceMaxFileSize)) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "blueimp-file-upload",
"version": "6.5.1",
"version": "6.5.2",
"title": "jQuery File Upload",
"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.",
"keywords": [
Expand Down

0 comments on commit 442856e

Please sign in to comment.