From df4cd1c8a725dc583e351b057e2d10bd074aa967 Mon Sep 17 00:00:00 2001 From: eee4 <41441600+eee4@users.noreply.github.com> Date: Wed, 23 Jul 2025 12:48:05 +0200 Subject: [PATCH] fix: include .jpeg as an allowed file extension --- Controllers/UserContentController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Controllers/UserContentController.cs b/Controllers/UserContentController.cs index 413a4af..3ca1457 100644 --- a/Controllers/UserContentController.cs +++ b/Controllers/UserContentController.cs @@ -81,7 +81,7 @@ public class UserContentController : ControllerBase // A good idea would be to also check the Content-Type // of submitted files. ~eee4 - List allowedExtensions = new List() { ".jpg", ".png", ".jfif", ".gif", ".avif", ".webp" }; + List allowedExtensions = new List() { ".jpg", ".jpeg", ".jfif", ".png", ".gif", ".avif", ".webp" }; string fileExtension = Path.GetExtension(file.FileName); if (!allowedExtensions.Contains(fileExtension.ToLower())) {