Hello Frans, thank you very much, after injecting the ResourceFactory your answer works perfect. /** * @var \TYPO3\CMS\Core\Resource\ResourceFactory * @inject */ protected $resourceFactory; $fileObject = $this->resourceFactory->retrieveFileOrFolderObject('file:123');