Manual:$wgAntivirusRequired

Details
Determines if a failed virus scan ( ) will cause the file to be rejected. A "failed" scan is one that does not complete successfully for some reason. It does not necessarily mean the file contains a virus (one reason could be the program has not enough ressources (CPU time, memory)).

If this is set to false, a failed virus scan will be ignored, as if the antivirus feature is disabled.