Legacy Knowledge Base
Published Jul. 2, 2025

Unable to upload file bigger than 10MB with ClamAVSizeLimitException after enabling Antivirus

Written By

Aaron Wang

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • Unable to upload a file bigger than 10MB after enabling antivirus with the following error in the log
2021-07-19 08:35:43.476 ERROR [http-nio-8080-exec-9][PortletServlet:119] javax.portlet.PortletException: fi.solita.clamav.ClamAVSizeLimitException: Clamd size limit exceeded. Full reply from server: INSTREAM size limit exceeded. ERROR_ [Sanitized]
javax.portlet.PortletException: fi.solita.clamav.ClamAVSizeLimitException: Clamd size limit exceeded. Full reply from server: INSTREAM size limit exceeded. ERROR_ [Sanitized]
        at com.liferay.portal.kernel.portlet.bridges.mvc.BaseMVCActionCommand.processAction(BaseMVCActionCommand.java:69)
        at com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet.callActionMethod(MVCPortlet.java:378)
        at com.liferay.portal.kernel.portlet.LiferayPortlet.processAction(LiferayPortlet.java:88)

Environment

  • Liferay DXP 7.2

Resolution

  • This error is due to Clamav's filesize limit configuration, which can be resolved by increasing the values for the following properties in ClamAV/clamd.conf.
MaxScanSize 1000M
MaxFileSize 1000M
StreamMaxLength 1000M

Additional Information

Did this article resolve your issue ?

Legacy Knowledge Base