This constant defines the maximum weight in kilobytes [1] below which SPIP will accept to store a logo [2].

It is possible to define this constant in your file
config/mes_options.php (see the article dedicated to it)

Default value: 0

example :

// logos larger than 350 Kb will not be registered.
define('_LOGO_MAX_SIZE', 350);

When this constant is set to 0 (zero), SPIP does not carry out a check when the image is uploaded.



[1Note that from SPIP3 onwards, a margin of 10% is added

[2Due to the way the upload forms work, the image file will still be sent to the server. It is only once "uploaded" that SPIP will check the conformity of this file with the constant

Author jack Published : Updated : 23/07/23

Translations : English, français, Nederlands