NEW Option MAIN_SECURITY_MAXFILESIZE_DOWNLOADED become official

This commit is contained in:
ldestailleur
2025-04-01 19:56:50 +02:00
parent 0780695ba4
commit f7d034a71c
6 changed files with 44 additions and 10 deletions

View File

@@ -216,7 +216,7 @@ class DocumentController extends Controller
$fileSizeMax = getDolGlobalInt('MAIN_SECURITY_MAXFILESIZE_DOWNLOADED');
if ($fileSizeMax && $fileSize > $fileSizeMax) {
dol_syslog('ErrorFileSizeTooLarge: ' . $fileSize);
print 'ErrorFileSizeTooLarge: ' . $fileSize . ' (max ' . $fileSizeMax . ')';
print 'ErrorFileSizeTooLarge: ' . $fileSize . ' (max ' . $fileSizeMax . ' Kb)';
exit;
}