Overriding Thumb and Preview Size Limits

By default, the size limit for for files used for thumbnails and document previews is 10MB for most files and 100MB for some image file types (.jpg, .png, .gif) . Files larger than the specified limits appear as broken images when displayed as thumbnails and fail to be generated as previews.

You can override the limits by customizing them in your cloudconfig file.

When PDF, text and Office files are previewed in FileCloud, they are actually downloaded and opened, and therefore, are not subject to the 10MB limit for thumbnails and previews. 


To customize the size limit for files other than .jpg, .png, and .gif:

  1. Open cloudconfig.php:
    Windows Location: XAMPP DIRECTORY/htdocs/config/cloudconfig.php
    Linux Location: /var/www/config/cloudconfig.php
  2. Add the following:

    define('TONIDOCLOUD_DOCUMENT_THUMB_SIZE_MB', 10);
  3. Change 10 to the custom size limit in MB.


To customize the size limit for images:

  1. Open cloudconfig.php:
    Windows Location: XAMPP DIRECTORY/htdocs/config/cloudconfig.php
    Linux Location: /var/www/config/cloudconfig.php
  2. Add the following:

    define('TONIDOCLOUD_IMAGE_THUMB_SIZE_MB', 100);
  3. Change 100 to the custom size limit in MB.

    Additionally, increase your system's memory limit depending on the size of the files you are uploading.

  4. Open .htaccess:
    Windows Location: XAMPP DIRECTORY/htdocs/.htaccess
    Linux Location: /var/www/.htaccess
  5. Find the following setting:

    php_value memory_limit 500M
  6. Increase the value for memory_limit.