Exceeded maximum preview size

Fixing error: Exceeded maximum preview size

   KB 24601        Last updated on 2024-03-13  




0.00
(0 votes)

Purpose

Unable to preview an attachment and getting error below:

Exceeded maximum preview size.JPG

Resolution

By default, maximum file preview only allows a document size of 20 MB. There is an attribute "zimbraFilePreviewMaxSize" available to control this maximum size.

zimbraFilePreviewMaxSize
    Maximum size in bytes for file preview in web client

               type : long
              value :
           callback :
          immutable : false
        cardinality : single
         requiredIn :
         optionalIn : cos,account
              flags : accountInfo,accountInherited
           defaults : 20971520
                min :
                max :
                 id : 1442
    requiresRestart :
              since : 8.5.0
    deprecatedSince :
User level
  • Check the value
zmprov ga <user@domain.com> zimbraFilePreviewMaxSize
  • Update the value
zmprov ma <user@domain.com> zimbraFilePreviewMaxSize 52428800

Note:- This will set the max. value of 50 MB.

  • Flush the account cache
zmprov fc account <user@domain.com>
COS level
  • Check the value
zmprov gc <cos_name> zimbraFilePreviewMaxSize
  • Update the value
zmprov mc <cos_name> zimbraFilePreviewMaxSize 52428800

Note:- This will set the max. value of 50 MB.

  • Flush the all cache
zmprov fc all


Submitted by: Ankit Dagdi
Verified Against: ZCS 10.0, ZCS 9.0 Date Created: 2024-01-20
Article ID: https://wiki.zimbra.com/index.php?title=Exceeded_maximum_preview_size Date Modified: 2024-03-13



Try Zimbra

Try Zimbra Collaboration with a 60-day free trial.
Get it now »

Want to get involved?

You can contribute in the Community, Wiki, Code, or development of Zimlets.
Find out more. »

Looking for a Video?

Visit our YouTube channel to get the latest webinars, technology news, product overviews, and so much more.
Go to the YouTube channel »


Jump to: navigation, search