Constants in TYPO3 define paths and database information. These values are global and cannot be changed. Constants are defined at various points during the bootstrap sequence.

To make the information below a bit more compact, namespaces were left out. Here are the fully qualified class names referred to below:

Check \TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::defineBaseConstants() method for more constants.

File types

Changed in version 13.0

The PHP backed enum \TYPO3\CMS\Core\Resource\FileType has been introduced as a drop-in replacement for the public FILETYPE_* constants in \TYPO3\CMS\Core\Resource\AbstractFile. See Migration.

The constant file types have been marked as deprecated and will be removed with TYPO3 v14.0. To be compatible with TYPO3 v12 and v13 use the constants from \TYPO3\CMS\Core\Resource\AbstractFile.

Different types of file constants are defined in the enum \TYPO3\CMS\Core\Resource\FileType. These cases are available for different groups of files as documented in

These file types are assigned to all FAL resources. They can, for example, be used in Fluid to decide how to render different types of files.

Enum case Value Description
FileType::UNKNOWN 0 Unknown
FileType::TEXT 1 Any kind of text
FileType::IMAGE 2 Any kind of image
FileType::AUDIO 3 Any kind of audio
FileType::VIDEO 4 Any kind of video
FileType::APPLICATION 5 Any kind of application


Migrate all usages to use the new enum \TYPO3\CMS\Core\Resource\FileType as follows:

  • \TYPO3\CMS\Core\Resource\AbstractFile::FILETYPE_UNKNOWN\TYPO3\CMS\Core\Resource\FileType::UNKNOWN->value
  • \TYPO3\CMS\Core\Resource\AbstractFile::FILETYPE_TEXT\TYPO3\CMS\Core\Resource\FileType::TEXT->value
  • \TYPO3\CMS\Core\Resource\AbstractFile::FILETYPE_IMAGE\TYPO3\CMS\Core\Resource\FileType::IMAGE->value
  • \TYPO3\CMS\Core\Resource\AbstractFile::FILETYPE_AUDIO\TYPO3\CMS\Core\Resource\FileType::AUDIO->value
  • \TYPO3\CMS\Core\Resource\AbstractFile::FILETYPE_VIDEO\TYPO3\CMS\Core\Resource\FileType::VIDEO->value
  • \TYPO3\CMS\Core\Resource\AbstractFile::FILETYPE_APPLICATION\TYPO3\CMS\Core\Resource\FileType::APPLICATION->value

HTTP status codes

The different status codes available are defined in EXT:core/Classes/Utility/HttpUtility.php (GitHub). These constants are defined as documented in