**SPIP**
# Article validated
The article "**\_LOGO\_MAX_SIZE**
(https://www.spip.net/en_article6556.html)" was validated by
<multi>[ar]جورج[fr]George [en]George</multi>.
* * *
## \_LOGO\_MAX_SIZE
Friday 15 May 2020 , by [jack](.././?page=auteur&id_auteur=593&)
This constant defines the maximum weight in kilobytes [1] below which SPIP
will accept to register a logo [2] .
It is possible to define this constant in your file
`config/mes_options.php` (see the article dedicated to it
(https://www.spip.net/ecrire/?exec=article&id_article=4909))
Default value: ``
example :
// logos larger than 350 Kb will not be registered.
define
(http://www.php.net/define)
(
'_LOGO_MAX_SIZE'
,
350
)
;
When this constant is set to `` (zero), SPIP does not carry out a check
when the image is uploaded.
See also: \_LOGO\_MAX\_WIDTH
(https://www.spip.net/ecrire/?exec=article&id_article=6554) et
\_LOGO\_MAX\_HEIGHT
(https://www.spip.net/ecrire/?exec=article&id_article=6555).
[1] Note that from SPIP3 onwards, a margin of 10% is added
[2] Due 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
— Sent by SPIP (https://www.spip.net/)
