From 8bb99096607f2c2791f71d6e83b98eba6ee55d02 Mon Sep 17 00:00:00 2001 From: David Date: Wed, 5 Aug 2020 21:19:38 +0200 Subject: [PATCH] Fix photo viewer --- Jellyfin.Api/Controllers/LibraryController.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Jellyfin.Api/Controllers/LibraryController.cs b/Jellyfin.Api/Controllers/LibraryController.cs index a4637752d..4731a5c8b 100644 --- a/Jellyfin.Api/Controllers/LibraryController.cs +++ b/Jellyfin.Api/Controllers/LibraryController.cs @@ -666,8 +666,7 @@ namespace Jellyfin.Api.Controllers } // TODO determine non-ASCII validity. - using var fileStream = new FileStream(path, FileMode.Open, FileAccess.Read); - return File(fileStream, MimeTypes.GetMimeType(path), filename); + return PhysicalFile(path, MimeTypes.GetMimeType(path)); } ///