Ok, ich habe die Funktion entsprechend verändert:
PHP-Code:
protected function getMaximumUploadSize()
{
[...]
var_dump(\Config::get('maxFileSize')); //exit;
var_dump(ini_get('upload_max_filesize')); //exit;
return min($upload_max_filesize, \Config::get('maxFileSize'));
}
Dann erscheint im Dateimanager beim Upload folgende Meldung:
Code:
int(64000000) string(2) "2M" int(64000000) string(2) "2M"
Warning: Cannot modify header information - headers already sent by (output started at /homepages/[...]/system/modules/core/classes/FileUpload.php:279) in system/modules/core/library/Contao/Template.php on line 294
#0 [internal function]: __error(2, 'Cannot modify h...', '/homepages/25/d...', 294, Array)
#1 system/modules/core/library/Contao/Template.php(294): header('Vary: User-Agen...', false)
#2 system/modules/core/classes/BackendTemplate.php(120): Contao\Template->output()
#3 system/modules/core/controllers/BackendMain.php(275): Contao\BackendTemplate->output()
#4 system/modules/core/controllers/BackendMain.php(135): Contao\BackendMain->output()
#5 contao/main.php(20): Contao\BackendMain->run()
#6 {main}
Warning: Cannot modify header information - headers already sent by (output started at /homepages/[...]/system/modules/core/classes/FileUpload.php:279) in system/modules/core/library/Contao/Template.php on line 295
#0 [internal function]: __error(2, 'Cannot modify h...', '/homepages/25/d...', 295, Array)
#1 system/modules/core/library/Contao/Template.php(295): header('Content-Type: t...')
#2 system/modules/core/classes/BackendTemplate.php(120): Contao\Template->output()
#3 system/modules/core/controllers/BackendMain.php(275): Contao\BackendTemplate->output()
#4 system/modules/core/controllers/BackendMain.php(135): Contao\BackendMain->output()
#5 contao/main.php(20): Contao\BackendMain->run()
#6 {main}
, darunter dann die normale Upload-Dialogseite (weil ich das "exit" kommentiert hatte).