diff --git a/bl-kernel/js/variables.php b/bl-kernel/js/variables.php index 28ce775d..02c6b3fd 100644 --- a/bl-kernel/js/variables.php +++ b/bl-kernel/js/variables.php @@ -16,5 +16,6 @@ echo 'var DB_DATE_FORMAT = "'.DB_DATE_FORMAT.'";'.PHP_EOL; echo 'var AUTOSAVE_INTERVAL = "'.AUTOSAVE_INTERVAL.'";'.PHP_EOL; echo 'var PAGE_BREAK = "'.PAGE_BREAK.'";'.PHP_EOL; echo 'var tokenCSRF = "'.$security->getTokenCSRF().'";'.PHP_EOL; +echo 'var UPLOAD_MAX_FILESIZE = '.Text::toBytes( ini_get('upload_max_filesize') ).';'.PHP_EOL; ?> \ No newline at end of file