[TASK] More descriptive error message on file upload failure 27/18827/2
authorPhilipp Gampe <philipp.gampe@typo3.org>
Thu, 27 Dec 2012 12:34:12 +0000 (13:34 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Mon, 11 Mar 2013 18:04:45 +0000 (19:04 +0100)
Provide the user with more accurate information about what might have
gone wrong.

Resolves: #46160
Releases: 6.0,6.1
Change-Id: I86123b904f36ff7f6db77f2dd13f97c0a01957c3
Reviewed-on: https://review.typo3.org/18827
Reviewed-by: Alexander Opitz
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/extensionmanager/Classes/Controller/UploadExtensionFileController.php

index faf7ffe..d715fe0 100644 (file)
@@ -103,7 +103,10 @@ class UploadExtensionFileController extends \TYPO3\CMS\Extensionmanager\Controll
                        if (!empty($file['tmp_name']['extensionFile'])) {
                                $tempFile = \TYPO3\CMS\Core\Utility\GeneralUtility::upload_to_tempfile($file['tmp_name']['extensionFile']);
                        } else {
-                               throw new \TYPO3\CMS\Extensionmanager\Exception\ExtensionManagerException('Creating temporary file failed.', 1342864339);
+                               throw new \TYPO3\CMS\Extensionmanager\Exception\ExtensionManagerException(
+                                       'Creating temporary file failed. Check your upload_max_filesize and post_max_size limits.',
+                                       1342864339
+                               );
                        }
                        if ($fileExtension === 't3x') {
                                $extensionData = $this->getExtensionFromT3xFile($tempFile, $overwrite);