2 declare(strict_types = 1);
43 if ($this->data[
'tableName'] ===
'sys_file') {
44 $fileUid = (int)$this->data[
'databaseRow'][
'uid'];
45 } elseif ($this->data[
'tableName'] ===
'sys_file_metadata') {
46 $fileUid = (int)$this->data[
'databaseRow'][
'file'][0];
70 if ($file->isMissing()) {
71 $content .=
'<span class="label label-danger label-space-right">'
72 . htmlspecialchars($lang->sL(
'LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:warning.file_missing'))
75 if (GeneralUtility::inList(
$GLOBALS[
'TYPO3_CONF_VARS'][
'GFX'][
'imagefile_ext'], $file->getExtension())) {
77 $previewImage = $processedFile->getPublicUrl(
true);
79 $content .=
'<img src="' . htmlspecialchars($previewImage) .
'" ' .
80 'width="' . $processedFile->getProperty(
'width') .
'" ' .
81 'height="' . $processedFile->getProperty(
'height') .
'" ' .
82 'alt="" class="t3-tceforms-sysfile-imagepreview" />';
85 $content .=
'<strong>' . htmlspecialchars($file->getName()) .
'</strong>';
86 $content .=
' (' . htmlspecialchars(GeneralUtility::formatSize($file->getSize())) .
'bytes)<br />';
88 $content .= htmlspecialchars($lang->sL(
'LLL:EXT:core/Resources/Private/Language/locallang_misc.xlf:fileMetaDataLocation')) .
': ';
89 $content .= htmlspecialchars($file->getStorage()->getName()) .
' - ' . htmlspecialchars($file->getIdentifier()) .
'<br />';
92 $content =
'<h2>' . htmlspecialchars($lang->sL(
'LLL:EXT:core/Resources/Private/Language/locallang_misc.xlf:fileMetaErrorInvalidRecord')) .
'</h2>';