SPIP

[ar] [ast] [bg] [br] [ca] [co] [cpf] [cs] [da] [de] [en] [eo] [es] [eu] [fa] [fon] [fr] [gl] [id] [it] [ja] [lb] [nl] [oc] [pl] [pt] [ro] [ru] [sk] [sv] [tr] [vi] [zh] Espace de traduction

Download

_IMG_MAX_HEIGHT

June 2010

All the versions of this article:

This constant defines the maximum image pixel height up to which SPIP will still accept to save an image [1].


It is possible to define this constant in your config/mes_options.php file (refer to the article dedicated to The mes_options.php file). [2]

-  The default value is : 0

Example:

// images taller than 500 pixels will not be saved
define('_IMG_MAX_HEIGHT', 500);

When this constant is defined as 0 (zero), SPIP will not do any size checking when uploading a document.

See also: _IMG_MAX_SIZE and _IMG_MAX_WIDTH.

Footnotes

[1Given how the upload forms actually work, the image file will still be sent to the server. It is only actually once it has been "uploaded" that SPIP will check that the file conforms to the constant.

[2Attention, this will generate a PHP NOTICE type warning message: check that the server does not display this type of error.


Show the template of this page Site powered by SPIP | Translation area | Private area