Project

General

Profile

Actions

Bug #92287

closed

After upgrading to ver. 9.5.21 uploading of pdf files causes an exception

Added by Robert von Hackwitz over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Backend User Interface
Start date:
2020-09-11
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:

Description

Until version 9.5.20 in sysext/core/Classes/Resource/Index/Indexer.php, method extractRequiredMetaData there was a check to verify if uploaded file was an Image:

if ($fileObject->getType() == File::FILETYPE_IMAGE && $this->storage->getDriverType() === 'Local') {

The new check introduced in ver. 9.5.21

if ($this->storage->getDriverType() === 'Local' && GeneralUtility::inList(strtolower($GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'] ?? ''), $fileObject->getExtension())) {

assumes pdf as image files (due to imagefile_ext ...).
This causes wrong value for metadata and throws the exception.

Then: or we remove ".pdf" from Default Configuration $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'] or we have to revert to old "if ($fileObject->getType() == File::FILETYPE_IMAGE"


Files


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #91967: Properties width and height are not extracted to meta data for PDF filesClosed2020-08-10

Actions
Has duplicate TYPO3 Core - Bug #92328: TYPO3 v9.5.21 - Renaming PDF files in filelist causes error: Data truncated for column 'height' at row 1Closed2020-09-17

Actions
Actions

Also available in: Atom PDF