diff --git a/dist/ng-file-upload.js b/dist/ng-file-upload.js index c6a9c43a..000a4873 100644 --- a/dist/ng-file-upload.js +++ b/dist/ng-file-upload.js @@ -733,7 +733,7 @@ ngFileUpload.directive('ngfSelect', ['$parse', '$timeout', '$compile', 'Upload', if (upload.shouldUpdateOn('change', attr, scope)) { var fileList = evt.__files_ || (evt.target && evt.target.files), files = []; /* Handle duplicate call in IE11 */ - if (!fileList) return; + if (!fileList || fileList.length === 0) return; for (var i = 0; i < fileList.length; i++) { files.push(fileList[i]); }