diff --git a/Teknik/Areas/Upload/Controllers/UploadController.cs b/Teknik/Areas/Upload/Controllers/UploadController.cs index e28335c..cf73567 100644 --- a/Teknik/Areas/Upload/Controllers/UploadController.cs +++ b/Teknik/Areas/Upload/Controllers/UploadController.cs @@ -78,7 +78,7 @@ namespace Teknik.Areas.Upload.Controllers if (Config.UploadConfig.VirusScanEnable) { ClamClient clam = new ClamClient(Config.UploadConfig.ClamServer, Config.UploadConfig.ClamPort); - clam.MaxStreamSize = Config.UploadConfig.MaxUploadSize; + clam.MaxStreamSize = maxUploadSize; ClamScanResult scanResult = clam.SendAndScanFile(data.InputStream); switch (scanResult.Result)