BlazorInputFile icon indicating copy to clipboard operation
BlazorInputFile copied to clipboard

Fix IE11 for server-side support

Open chris5287 opened this issue 4 years ago • 3 comments

Fix function declaration that doesn't work in IE11.

IE11 does not have lastModified field, but lastModifiedDate appears to work on all platforms.

Also IE11 fixes two events for selection, due to elem.value = "" (see https://www.drupal.org/node/2301527) so check length of files before processing to skip empty list

chris5287 avatar Jun 01 '20 20:06 chris5287

I was not able to get this working on IE11. It lets me select a file but it doesn't call window.BlazroInputFile.init So maybe the problem is in my blazor code.(?) I works on other browsers(Edge/Chrome) . I am using blazor.polyfil.js Any Suggestions?

ChericeD avatar Jul 07 '20 22:07 ChericeD

Any errors in IE11 developer tools?

chris5287 avatar Jul 07 '20 23:07 chris5287

Thanks! The problem was my mis-understanding of where to put the js files in VisualStudio solutions with multiple projects. When executing inputFile.js thru Visual Studio, it shows me the newer version of inputfile.js. But when using F12 on IE11 it showed that it was executing the previous version (Using LastModifed not LastModifedDate)
It works for me now.

ChericeD avatar Jul 08 '20 15:07 ChericeD