fix: normalize file extension check to lowercase

This commit is contained in:
MahanCh
2025-09-03 15:22:55 +03:30
parent b2a70bc5a9
commit 179ff95d54

View File

@@ -1735,7 +1735,7 @@ namespace CompanyManagment.Application
if (file.Length > (50 * 1024 * 1024))
return op.Failed("حجم فایل نمی تواند بیشتر از 50 مگابایت باشد");
if (!allowedExtensions.Contains(fileExtension))
if (!allowedExtensions.Contains(fileExtension.ToLower()))
{
var operationMessage = ":فرمت فایل باید یکی از موارد زیر باشد";
operationMessage += "\n";