diff options
| author | Jake Mannens <jake@asger.xyz> | 2026-03-25 01:57:19 +1100 |
|---|---|---|
| committer | Jake Mannens <jake@asger.xyz> | 2026-03-25 01:57:46 +1100 |
| commit | 6c06dfc4f83f30292e65c08a3cb0c48401d4bfa7 (patch) | |
| tree | 511f88873fa6173637115a38c31ec5f8018e108e /Controllers | |
| parent | c751709b1b4fe6f16fd84647e8e071455e7b78d6 (diff) | |
v0.2av0.2a
Diffstat (limited to 'Controllers')
| -rw-r--r-- | Controllers/MediaController.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Controllers/MediaController.cs b/Controllers/MediaController.cs index 3368f45..2c015f7 100644 --- a/Controllers/MediaController.cs +++ b/Controllers/MediaController.cs @@ -32,7 +32,7 @@ public class MediaController : Controller { var fs = System.IO.File.OpenRead(mediaService.GetPath(media)); - return new FileStreamResult(fs, media.CurrentUploadedFile.MimeType); + return new FileStreamResult(fs, media.CurrentUploadedFile!.MimeType); } [HttpGet("thumb/{mediaId}")] |
