Fixes #990: revert to checking if FileList is supported by the browser, instead of checking IE8 literally (partially reverted a41e1dafc2)

This commit is contained in:
Yihui Xie
2015-10-21 11:26:07 -05:00
parent 7948a0a4fa
commit 2be6d7a65c
5 changed files with 9 additions and 7 deletions

View File

@@ -168,7 +168,9 @@ function uploadFiles(evt) {
uploader.abort();
var files = evt.target.files;
var IE8 = (browser.isIE && browser.IEVersion === 8);
// IE8 here does not necessarily mean literally IE8; it indicates if the web
// browser supports the FileList object (IE8/9 do not support it)
var IE8 = typeof(files) === 'undefined';
var id = fileInputBinding.getId(evt.target);
if (!IE8 && files.length === 0)