mirror of
https://git.teknik.io/Teknikode/Teknik.git
synced 2023-08-02 14:16:22 +02:00
Fixed upload API malware scan not using correcct max upload size
This commit is contained in:
parent
1299ef58cf
commit
2980817d57
@ -62,7 +62,7 @@ namespace Teknik.Areas.API.Controllers
|
|||||||
if (Config.UploadConfig.VirusScanEnable)
|
if (Config.UploadConfig.VirusScanEnable)
|
||||||
{
|
{
|
||||||
ClamClient clam = new ClamClient(Config.UploadConfig.ClamServer, Config.UploadConfig.ClamPort);
|
ClamClient clam = new ClamClient(Config.UploadConfig.ClamServer, Config.UploadConfig.ClamPort);
|
||||||
clam.MaxStreamSize = Config.UploadConfig.MaxUploadSize;
|
clam.MaxStreamSize = maxUploadSize;
|
||||||
ClamScanResult scanResult = clam.SendAndScanFile(model.file.InputStream);
|
ClamScanResult scanResult = clam.SendAndScanFile(model.file.InputStream);
|
||||||
|
|
||||||
switch (scanResult.Result)
|
switch (scanResult.Result)
|
||||||
|
Loading…
Reference in New Issue
Block a user