---
title: "Deprecation: #77524 - Deprecated method fileResource of ContentObjectRenderer"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:deprecation-77524"
source: "Changelog/8.5/Deprecation-77524-DeprecatedMethodFileResourceOfContentObjectRenderer.rst"
typo3-version: "8.5"
typo3-major: 8
type: "deprecation"
issue: 77524
forge: "https://forge.typo3.org/issues/77524"
tags: ["Frontend", "PHP-API"]
rendered: "2026-09-20T18:31:11+00:00"
---

# Deprecation: #77524 - Deprecated method fileResource of ContentObjectRenderer {#deprecation-77524}

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

## Description {#description}

The method `ContentObjectRenderer::fileResource()` has been marked as deprecated.

## Impact {#impact}

Using the mentioned method will trigger a deprecation log entry.

## Affected Installations {#affected-installations}

Instances that use the method.

## Migration {#migration}

Migrate your code to use `file_get_contents`. Use a call to `$GLOBALS['TSFE']->tmpl->getFileName($fileName)`
for substituting strings like `EXT`.
