BlazorInputFile
BlazorInputFile copied to clipboard
Fix IE11 for server-side support
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
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?
Any errors in IE11 developer tools?
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.