From add35817a05e492a0db226d882ae69581e48556c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Sj=C3=B6hag?= Date: Sat, 12 Oct 2019 16:33:24 +0200 Subject: [PATCH 1/2] Get lastModifiedDate from Edge --- BlazorInputFile/wwwroot/inputfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BlazorInputFile/wwwroot/inputfile.js b/BlazorInputFile/wwwroot/inputfile.js index 13e7ab3..d1ace97 100644 --- a/BlazorInputFile/wwwroot/inputfile.js +++ b/BlazorInputFile/wwwroot/inputfile.js @@ -9,7 +9,7 @@ var fileList = Array.prototype.map.call(elem.files, function (file) { var result = { id: ++nextFileId, - lastModified: new Date(file.lastModified).toISOString(), + lastModified: (file.lastModified ? new Date(file.lastModified) : file.lastModifiedDate).toISOString(), name: file.name, size: file.size, type: file.type From 86dae08b66f8c02473642d4a15f8718f4511c0ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Sj=C3=B6hag?= Date: Mon, 14 Oct 2019 10:29:56 +0200 Subject: [PATCH 2/2] Latest from NuGet --- BlazorInputFile/BlazorInputFile.csproj | 4 ++-- samples/Sample.Core/Sample.Core.csproj | 4 ++-- samples/Sample.WebAssembly/Sample.WebAssembly.csproj | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/BlazorInputFile/BlazorInputFile.csproj b/BlazorInputFile/BlazorInputFile.csproj index f449646..d371775 100644 --- a/BlazorInputFile/BlazorInputFile.csproj +++ b/BlazorInputFile/BlazorInputFile.csproj @@ -9,8 +9,8 @@ - - + + diff --git a/samples/Sample.Core/Sample.Core.csproj b/samples/Sample.Core/Sample.Core.csproj index 2eff083..c6e4c06 100644 --- a/samples/Sample.Core/Sample.Core.csproj +++ b/samples/Sample.Core/Sample.Core.csproj @@ -6,8 +6,8 @@ - - + + diff --git a/samples/Sample.WebAssembly/Sample.WebAssembly.csproj b/samples/Sample.WebAssembly/Sample.WebAssembly.csproj index e1f5dd8..c37a701 100644 --- a/samples/Sample.WebAssembly/Sample.WebAssembly.csproj +++ b/samples/Sample.WebAssembly/Sample.WebAssembly.csproj @@ -8,10 +8,10 @@ - - - - + + + +