Media Controller Tests and other

This commit is contained in:
Artemy
2025-07-21 16:18:04 +07:00
parent c0d02e0fa1
commit c434ca447c
8 changed files with 286 additions and 22 deletions
+1 -1
View File
@@ -102,7 +102,7 @@ public class MediaController : Controller
var media = await _mediaService.GetMediaByIdAsync(id);
return File(media.Data, media.MineType, Path.GetFileName(media.FileName));
return File(media.Data, media.MimeType, Path.GetFileName(media.FileName));
}
catch (KeyNotFoundException ex)
{