it is very useful to have scanning of files via uploading through web interface of nextcloud.
In addition, it would be very useful also to add scanning via clamav-daemon to files that are synchronized via webdav nextcloud client (mac or PC). Do anyone know if this is possible?
antivirus for files works only when uploading files via web interface.
Desktop client can upload any type of virus without any problems (version 3.8.0 on macos, osx-21-6-0)
April 18, 2023, 9:35am
Most have a virus scanner on the desktop. In the description it states that you can use background jobs to scan on a regular basis:
Background Job to scan all files
For the desktop client, there is a report on the bugtracker:
08:21PM - 13 Jan 22 UTC
### Steps to reproduce
1. Downloaded eicar.com eicar.com.txt test viruses,
… Copied to nextcloud home folder and synced immediately with server over nextcloud-client
3. Viruses doesn't get deleted, able to copy files
4. Tried same upload from chrome web browser, upload fails, system warns about virus detection and deletes file.
### Expected behaviour
The uploaded file should be rejected.
### Actual behaviour
The uploaded file is stored in Nextcloud.
Ubuntu 20.04.3 LTS
Server version: Apache/2.4.41 (Ubuntu)
Server built: 2022-01-05T14:49:56
10.3.32-MariaDB-0ubuntu0.20.04.1 Ubuntu 20.04
**Nextcloud version:** (see Nextcloud admin page)
You are right that most people have a virus scanner. But I would like to know that even someone that hasn’t an antivirus is protected.
About the background job, this is a different issue. Background are heavy, are scheduled on regular basis but it passes some time before doing it (and virus can spread in the meanwhile).
We use mostly desktop client rather than web upload, and the report on bugtracker catches exactly the point. Unfortunately from the answers I imagine it is not considered a bug, but it should IMHO.
Hope someone will fix it and consider adding antivirus protection using synchronization desktop client.
All the best
April 18, 2023, 11:07am
For priorities, you have to check with the developers. Not sure if you can do something with the workflow app, that you don’t sync files after upload and wait a virus scan before being synced to other clients. And you can perhaps scan these files tagged as ‘unscanned’ first.