fix: normalize file extension check to lowercase
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user