Youtube & Vimeo content elements doesn't work properly in surf deployed projects
We are currently facing issues with TYPO3 8.4.1 while saving files within the "Text & Media" content element, especially youtube or vimeo elements. We deploy our application with Surf, so we have the Surf folder structure. TYPO3 uses the TYPO3\CMS\Core\Utility\GeneralUtility::writeFileToTypo3tempDir() method to write the file temporary to the typo3temp directory. But during the execution of the method, it compares two paths pointing to the file, that cannot be conform: /var/www/releases/current/web/fileadmin/... with /var/www/releases/20161215160349/web/fileadmin/.... As result the file is not correctly written and empty, and TYPO3 cannot handle it. The content element is created anyway without an error message, the related file is missing.