ZUGFeRDRESTService: Switch to different file size check
This commit is contained in:
parent
1c7e620c87
commit
1316215f1a
@ -84,7 +84,8 @@ namespace ZUGFeRDRESTService.Controllers
|
||||
{
|
||||
_logger.Info("Checking Filesize of file [{0}]", file.FileName);
|
||||
|
||||
bool oFileSizeIsOK = _file.TestFileSizeIsLessThanMaxFileSize(file.FileName, _MaxFileSizeInMegabytes);
|
||||
long maxFileSize = _MaxFileSizeInMegabytes * 1024 * 1024;
|
||||
bool oFileSizeIsOK = file.Length < maxFileSize;
|
||||
|
||||
if (oFileSizeIsOK == false)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user