Files configuration

Swarm can be configured

max_size

Swarm limits the size of files that are displayed in a review or standard file view. This defaults to 1MB, but can be configured to be larger or smaller. Files larger than this will be truncated.

If the value is set to zero, then the file size is unlimited.

<?php
  // this block should be a peer of 'p4'
  'files' => array(
    'max_size' => 1 * 1024 * 1024, // 1MB (in bytes)
  ),

download_timeout

When downloading files, there is a timeout which defaults to 30 minutes. This can be changed by setting the download_timeout configurable to a value in seconds. Alternatively, setting it to zero removes the timeout.

<?php
  // this block should be a peer of 'p4'
  'files' => array(
    'download_timeout' => 1800, // seconds (30 minutes)
  ),