Issue Found

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
Drupal Core: 8.7.8
Lightning: 4.0.5
PHP: 7.2

Steps to reproduce.
- Enable ClamAV and leave "host" field blank.
- Go to Content > Add Media > Image.
- Upload an image.
- An error should be returned reading: "The anti-virus scanner could not check the file, so the file cannot be uploaded. Contact the site administrator if this problem persists." This is the expected result since we did not configure the clamav host.
- Create a content type with an image field. In form display set the widget as Entity Browser with Image browser in settings.
- Go to Content > Add Content > Content type - with the image field that has entity browser widget configured.
- Click Select Images
- Click Upload tab
- Upload image.

image-20240228095014860

2024-05-06T114257

Resolution Approah

First find the “ClamAV Anti-Virus” panel via searching over the module admin page:

2024-05-06T113748

Click on “Configure” and under outage behavior check “allow unchecked files”, and save configuration via the bottom button

2024-05-06T113855