---
title: "Deprecation: #85895 - Deprecate File::_getMetaData()"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:deprecation-85895"
source: "Changelog/10.0/Deprecation-85895-DeprecateFile_getMetaData.rst"
typo3-version: "10.0"
typo3-major: 10
type: "deprecation"
issue: 85895
forge: "https://forge.typo3.org/issues/85895"
tags: ["FAL", "PHP-API", "FullyScanned", "ext:core"]
rendered: "2026-10-02T15:05:01+00:00"
---

# Deprecation: #85895 - Deprecate File::\_getMetaData() {#deprecation-85895}

See [forge#85895](https://forge.typo3.org/issues/85895)

## Description {#description}

The internal method `\TYPO3\CMS\Core\Resource\File::_getMetaData()` which is used to fetch meta data of a file
has been marked as deprecated. This method has been superseded by the `\TYPO3\CMS\Core\Resource\MetaDataAspect`.

## Impact {#impact}

Using this method will trigger a PHP `E_USER_DEPRECATED` error.

## Affected Installations {#affected-installations}

Any 3rd party extension calling `\TYPO3\CMS\Core\Resource\File::_getMetaData()` is affected.

## Migration {#migration}

To fetch the meta data, call `$fileObject->getMetaData()->get()` instead.
