[BUGFIX] Set internalUploadMap on upload in ExtendedFileUtility 20/29820/2
authorMarc Bastian Heinrichs <typo3@mbh-software.de>
Sat, 3 May 2014 17:34:24 +0000 (19:34 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Mon, 5 May 2014 21:22:38 +0000 (23:22 +0200)
Since introducing FAL the internalUploadMap array in
ExtendedFileUtility was not set on uploading files.

Resolves: #58463
Releases: 6.2, 6.1, 6.0
Change-Id: I4a537a57f1b688c26c20b9f68356a4be67bc5851
Reviewed-on: https://review.typo3.org/29820
Reviewed-by: Sascha Wilking
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
typo3/sysext/core/Classes/Utility/File/ExtendedFileUtility.php

index dc11cdf..269a237 100644 (file)
@@ -944,6 +944,7 @@ class ExtendedFileUtility extends \TYPO3\CMS\Core\Utility\File\BasicFileUtility
                                        $this->getIndexer($fileObject->getStorage())->updateIndexEntry($fileObject);
                                }
                                $resultObjects[] = $fileObject;
+                               $this->internalUploadMap[$uploadPosition] = $fileObject->getCombinedIdentifier();
                                $this->writelog(1, 0, 1, 'Uploading file "%s" to "%s"', array($fileInfo['name'], $targetFolderObject->getIdentifier()));
                        } catch (\TYPO3\CMS\Core\Resource\Exception\UploadException $e) {
                                $this->writelog(1, 2, 106, 'The upload has failed, no uploaded file found!', '');