How to increase the file size limit for uploads

There are 2 places where a maximum file size can be determined.

1- The global setting

This one is defined on the sys.config.php configuration file.
It acts as a default setting for all users and clients, including the main administrator.
The limit set by default is 2GB.

To change it, open the file with a text editor (preferably something like Notepad++, Atom or Sublime Text) and look for the line that defines the MAX_FILESIZE value:

Sample extract from the file:

1
2
3
4
5
6
7
8
9
10
11
define('SITE_LANG','es');
 
/**
 * Define a maximum size (in mb.) that is allowed on each file to be uploaded.
 */
define('MAX_FILESIZE',2048); 
 
/**
 * Encoding to use on the e-mails sent to new clients, users, files, etc.
 */
define('EMAIL_ENCODING', 'utf-8');

Change the value 2048 to anything you need. It must be an integer.
The value is defined in MB in binary form, so if you need 1GB, then set it as 1024.

Use this tool to quickly convert some example values to the one you could use.


2- Custom value per account

Starting from version r885, there is a new field on the clients and users add and edit forms.
Labeled “Max. upload filesize” it works the same way as the global value, expressed in MB.
Change it as needed.

If left empty or set at 0, it will use the global value.

Example screen capture:

Top