Skip to content
Snippets Groups Projects
Commit b5e71654 authored by Christian Weiske's avatar Christian Weiske Committed by Georg Ringer
Browse files

[BUGFIX] Use original file for ProcessedFile::getMimeType and ::getSize

When the processed files are saved in a different storage,
calling `$this->getStorage()->getFileInfoByIdentifier()`
on a ProcessedFile that uses the original file will fail.

This patch proxies the calls to the original file if necessary,
just as it is already done for e.g. exists() and getPublicUrl().

Resolves: #102267
Releases: main, 12.4
Change-Id: I862340e377eef306c906bf35bf171a82876fdc01
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/81593


Reviewed-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Tested-by: default avatarcore-ci <typo3@b13.com>
Reviewed-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: default avatarGuido Schmechel <guido.schmechel@brandung.de>
Tested-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarGarvin Hicking <gh@faktor-e.de>
Tested-by: default avatarGarvin Hicking <gh@faktor-e.de>
parent 747b9bb1
Branches
Tags
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment