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

_DOC_MAX_SIZE

June 2010

All the versions of this article:

This constant defines the maximum size in kilobytes up to which SPIP will still accept to save a document [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:

// documents larger than 250 KB will not be saved
define('_DOC_MAX_SIZE', 250);

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

See also: _IMG_MAX_SIZE.

Footnotes

[1Given how the upload forms actually work, the document 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