From 2f1d983c54c780793803b00f2e216fc818df4eef Mon Sep 17 00:00:00 2001 From: Guillaume Boudreau Date: Thu, 23 Aug 2012 21:55:02 -0400 Subject: [PATCH] Workaround for Chrome bug that prevents onchange events from receiving the selected files. Ref: http://code.google.com/p/chromium/issues/detail?id=138987 --- js/jquery.fileupload.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/jquery.fileupload.js b/js/jquery.fileupload.js index 0ec51b64e..4927f951c 100644 --- a/js/jquery.fileupload.js +++ b/js/jquery.fileupload.js @@ -850,7 +850,7 @@ fileInput.prop('entries'), files, value; - if (entries) { + if (entries && entries.length > 0) { return this._handleFileTreeEntries(entries); } files = $.makeArray(fileInput.prop('files'));