[BUGFIX] Output correct max upload size 38/54938/2
authorAlexander Opitz <opitz.alexander@googlemail.com>
Wed, 6 Dec 2017 00:10:24 +0000 (01:10 +0100)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Wed, 6 Dec 2017 00:58:55 +0000 (01:58 +0100)
We should show what the max upload file size is and not the max size of
a HTTP post body.

Resolves: #83230
Releases: master, 8.7, 7.6
Change-Id: Ib6fa244b19c434417808bb19126f862cf9418fb0
Reviewed-on: https://review.typo3.org/54938
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: TYPO3com <no-reply@typo3.com>
typo3/sysext/install/Classes/SystemEnvironment/Check.php

index daed2a1..924b8cb 100644 (file)
@@ -188,7 +188,7 @@ class Check implements CheckInterface
         } else {
             $status = new Status\OkStatus();
             $status->setTitle('Maximum post upload size correlates with maximum upload file size in PHP');
-            $status->setMessage('The maximum size for file uploads is actually set to ' . ini_get('post_max_size'));
+            $status->setMessage('The maximum size for file uploads is actually set to ' . ini_get('upload_max_filesize'));
         }
         return $status;
     }