How to attach large documents to cases, clients or organisations

Navigation: Legal Case Management > Help > FAQ
Thursday 28 December 2006

The Legal Case Management software (LCM) may emit a panic or error message when uploading a large document (attach file) to a case, client or organisation.

To fix the problem, you must modify the following PHP parameters. You may also need to modify an LCM configuration variable:

PHP configuration variables

Edit it as root the php.ini file [1], in order to increase the following values:

- "upload_max_filesize = 20M"
- "post_max_size = 25M"
- "memory_limit = 96M"

You may increase the values as much as necessary (in theory, the file is stored in a longblob MySQL field, therefore it supports up to 4GB), but we do not recommend to increase it to more than 20M, since it will use considerable system ressources (notably RAM).

Once the file is modified, you must restart Apache for the changes to take effect.

LCM configuration variables

Since LCM 0.7.2, a global variable max_file_upload_size has been introduced. The default value is 10MB.

Important this value does not override the default PHP values. It is an additionnal verification which is done once the upload is finished (and will eventually be used to emit more friendly warnings).

To modify this variable, add:

to your inc/config/my_options.php file. For more information on configuration variables, see: Customizing LCM internals using the "my_options" file.

For further help

For questions or comments, write to legalcase-devel@lists.sf.net or refer to our support options.

Footnotes:

[1] Using Debian GNU/Linux or Ubuntu, type: sudo gedit /etc/php5/apache2/php.ini

To send a message Private area Registering with the site xml ?