#54750Wrong use of tempnam() in LocalPrieviewHelper
Description
In TYPO3\CMS\Core\Resource\Processing\LocalPrieviewHelper Utility\GeneralUtility::tempnam() is used to create a temp file.
$temporaryFileName = Utility\GeneralUtility::tempnam('preview_') . '.' . $task->getTargetFileExtension();
The problem here is that tempnam() creates a file int typo3temp but that one isn’t used because the file extension is added to the $temporyFileName.
This results in a empty file in typo3temp every time an processed file is created.