TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Core\Type\File\FileInfo Class Reference
Inheritance diagram for TYPO3\CMS\Core\Type\File\FileInfo:
TYPO3\CMS\Core\Type\TypeInterface TYPO3\CMS\Core\Type\File\ImageInfo

Public Member Functions

 getMimeType ()
 
- Public Member Functions inherited from TYPO3\CMS\Core\Type\TypeInterface
 __toString ()
 

Detailed Description

A SPL FileInfo class providing general information related to a file.

Definition at line 21 of file FileInfo.php.

Member Function Documentation

◆ getMimeType()

TYPO3\CMS\Core\Type\File\FileInfo::getMimeType ( )

Return the mime type of a file.

Returns
string|bool Returns the mime type or FALSE if the mime type could not be discovered

Definition at line 28 of file FileInfo.php.

References $GLOBALS, and TYPO3\CMS\Core\Utility\GeneralUtility\callUserFunction().

Referenced by TYPO3\CMS\Core\Type\File\ImageInfo\getImageSizes().