2 namespace TYPO3\CMS\Core\Resource\Hook;
33 $fileRecord = $propertyArray[
'row'];
35 if ($fileRecord[
'uid'] > 0) {
49 $fileMetadataRecord = $propertyArray[
'row'];
51 if (!empty($fileMetadataRecord[
'file']) && $fileMetadataRecord[
'file'][0] > 0) {
69 $previewImage = $processedFile->getPublicUrl(
true);
71 if ($file->isMissing()) {
72 $flashMessage = \TYPO3\CMS\Core\Resource\Utility\BackendUtility::getFlashMessageForMissingFile($file);
73 $content .= $flashMessage->render();
76 $content .=
'<img src="' . htmlspecialchars($previewImage) .
'" ' .
77 'width="' . $processedFile->getProperty(
'width') .
'" ' .
78 'height="' . $processedFile->getProperty(
'height') .
'" ' .
79 'alt="" class="t3-tceforms-sysfile-imagepreview" />';
81 $content .=
'<strong>' . htmlspecialchars($file->getName()) .
'</strong>';
83 $content .= BackendUtility::getProcessedValue(
'sys_file',
'type', $file->getType()) .
' (' . $file->getMimeType() .
')<br />';
84 $content .=
$GLOBALS[
'LANG']->sL(
'LLL:EXT:lang/locallang_misc.xlf:fileMetaDataLocation',
true) .
': ';
85 $content .= htmlspecialchars($file->getStorage()->getName()) .
' - ' . htmlspecialchars($file->getIdentifier()) .
'<br />';
88 $content =
'<h2>' .
$GLOBALS[
'LANG']->sL(
'LLL:EXT:lang/locallang_misc.xlf:fileMetaErrorInvalidRecord',
true) .
'</h2>';