Allow all file size for image

This commit is contained in:
Fransolet Thomas 2023-01-13 17:47:08 +01:00
parent bdab0dc286
commit 63654bdcf9

View File

@ -236,7 +236,7 @@ namespace ManagerService.Controllers
{
var stringResult = "";
double fileSizeibMbs = (double) ((double)file.Length) / (1024*1024);
if (fileSizeibMbs <= 4.01)
if (fileSizeibMbs <= 4.01 || resourceType == ResourceType.Image)
{
using (var ms = new MemoryStream())
{