17 use \TYPO3\CMS\Backend\Utility\BackendUtility;
18 use \TYPO3\CMS\Core\Resource\ResourceFactory;
34 public function renderFileInfo(array $propertyArray, \
TYPO3\CMS\Backend\Form\FormEngine $tceformsObj) {
35 $fileRecord = $propertyArray[
'row'];
37 if ($fileRecord[
'uid'] > 0) {
52 $fileMetadataRecord = $propertyArray[
'row'];
54 if ($fileMetadataRecord[
'file'] > 0) {
71 $previewImage = $processedFile->getPublicUrl(TRUE);
73 if ($file->isMissing()) {
74 $flashMessage = \TYPO3\CMS\Core\Resource\Utility\BackendUtility::getFlashMessageForMissingFile($file);
75 $content .= $flashMessage->render();
78 $content .=
'<img src="' . htmlspecialchars($previewImage) .
'" alt="" class="t3-tceforms-sysfile-imagepreview" />';
80 $content .=
'<strong>' . htmlspecialchars($file->getName()) .
'</strong>';
82 $content .= BackendUtility::getProcessedValue(
'sys_file',
'type', $file->getType()) .
' (' . $file->getMimeType() .
')<br />';
83 $content .=
$GLOBALS[
'LANG']->sL(
'LLL:EXT:lang/locallang_misc.xlf:fileMetaDataLocation', TRUE) .
': ';
84 $content .= htmlspecialchars($file->getStorage()->getName()) .
' - ' . htmlspecialchars($file->getIdentifier()) .
'<br />';
87 $content =
'<h2>' .
$GLOBALS[
'LANG']->sL(
'LLL:EXT:lang/locallang_misc.xlf:fileMetaErrorInvalidRecord', TRUE) .
'</h2>';
renderFileInfo(array $propertyArray, \TYPO3\CMS\Backend\Form\FormEngine $tceformsObj)
static formatSize($sizeInBytes, $labels='')
renderFileMetadataInfo(array $propertyArray, \TYPO3\CMS\Backend\Form\FormEngine $tceformsObj)
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]
renderFileInformationContent(\TYPO3\CMS\Core\Resource\File $file=NULL)
const CONTEXT_IMAGEPREVIEW