mirror of
https://github.com/rstudio/shiny.git
synced 2026-04-07 03:00:20 -04:00
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:
@@ -4403,7 +4403,7 @@ function uploadFiles(evt) {
|
||||
uploader.abort();
|
||||
|
||||
var files = evt.target.files;
|
||||
var IE8 = (browser.isIE && browser.IEVersion === 8);
|
||||
var IE8 = (browser.isIE && browser.IEVersion <= 9);
|
||||
var id = fileInputBinding.getId(evt.target);
|
||||
|
||||
if (!IE8 && files.length === 0)
|
||||
|
||||
File diff suppressed because one or more lines are too long
6
inst/www/shared/shiny.min.js
vendored
6
inst/www/shared/shiny.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user