mirror of
https://git.teknik.io/Teknikode/Teknik.git
synced 2023-08-02 14:16:22 +02:00
Added max stream size fix to API
This commit is contained in:
parent
3ea314281f
commit
99378c6e30
@ -51,6 +51,7 @@ namespace Teknik.Areas.API.Controllers
|
||||
if (Config.UploadConfig.VirusScanEnable)
|
||||
{
|
||||
ClamClient clam = new ClamClient(Config.UploadConfig.ClamServer, Config.UploadConfig.ClamPort);
|
||||
clam.MaxStreamSize = Config.UploadConfig.MaxUploadSize;
|
||||
ClamScanResult scanResult = clam.SendAndScanFile(fileData);
|
||||
|
||||
switch (scanResult.Result)
|
||||
|
Loading…
Reference in New Issue
Block a user