The default max file size for clamav is lower then the default max file size for Mattermost. This leads to a lot of reported issues where the antivirus plugin will reject files that are larger then 25MB, the default max size for clamav.
Documentation should be created and added to the installation process to increase the max file size in the clamav docker container to match the max file size in Mattermost. Ideally this would be as simple as possible.
If you're interested please comment here and come join our "Contributors" community channel on our daily build server, where you can discuss questions with community members and the Mattermost core team. For technical advice or questions, please join our "Developers" community channel.
New contributors please see our Developer's Guide.
@crspeller Should this be in the antivirus plugin repo because it requires changes there?
Yes but we have not setup easy paths to find them yet, so I think this is OK here for now.
I would like to be assigned this issue.
Thanks.
Mattermost supports a maximum of five (5) attached files per post. The default maximum file size is 50 MB, but this can be changed by the System Admin.
During installation the docker MaxFileSize parameter should be set to 50 MB.
docker run -e CLAMD_CONF_MaxFileSize=50M -d -p 3310:3310 mkodockx/docker-clamav