From 9effb3c6e8fb39d4fc0a21e9e77dea87280ba0c2 Mon Sep 17 00:00:00 2001 From: trannamtrung1st Date: Mon, 19 Jul 2021 09:23:46 +0700 Subject: [PATCH] #14: Enable range processing --- .../elFinder.Net.AspNetCore/Extensions/ConnectorExtensions.cs | 3 ++- .../elFinder.Net.AspNetCore/elFinder.Net.AspNetCore.csproj | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/elFinder.Net.Core/elFinder.Net.AspNetCore/Extensions/ConnectorExtensions.cs b/elFinder.Net.Core/elFinder.Net.AspNetCore/Extensions/ConnectorExtensions.cs index 7bdb7e8..ece5114 100644 --- a/elFinder.Net.Core/elFinder.Net.AspNetCore/Extensions/ConnectorExtensions.cs +++ b/elFinder.Net.Core/elFinder.Net.AspNetCore/Extensions/ConnectorExtensions.cs @@ -24,7 +24,8 @@ public static async Task GetPhysicalFileAsync(this ControllerBase if (!file.CanDownload()) return controller.Forbid(); - return controller.File(await file.OpenReadAsync(cancellationToken: cancellationToken), file.MimeType); + return controller.File(await file.OpenReadAsync(cancellationToken: cancellationToken), file.MimeType, + enableRangeProcessing: true); } } } diff --git a/elFinder.Net.Core/elFinder.Net.AspNetCore/elFinder.Net.AspNetCore.csproj b/elFinder.Net.Core/elFinder.Net.AspNetCore/elFinder.Net.AspNetCore.csproj index 65a44fc..a42813d 100644 --- a/elFinder.Net.Core/elFinder.Net.AspNetCore/elFinder.Net.AspNetCore.csproj +++ b/elFinder.Net.Core/elFinder.Net.AspNetCore/elFinder.Net.AspNetCore.csproj @@ -14,7 +14,7 @@ true This package enables ASP.NET Core 2.2 projects to easily integrate the elFinder.Net.Core connector. See the example project on Github for usage detail. logo.png - 1.2.6 + 1.2.6.1