[BUGFIX] Avoid unnecessarily fetching file for processing 33/53033/2
authorHelmut Hummel <typo3@helhum.io>
Sat, 20 May 2017 09:29:45 +0000 (11:29 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 2 Jun 2017 13:30:28 +0000 (15:30 +0200)
commit3c451b470825c22ac6c3dffde8e2f76a53de27ed
treed6fc8aa655a10d95ce3870de5b343d3621bbd527
parent473a18361aadcfc35a27a49f9ee6c36fe5a866a5
[BUGFIX] Avoid unnecessarily fetching file for processing

Files that are not configured as images, won't be processed,
but are still unnecessarily fetched for processing.

To avoid this, we change the processing API, that fetching
only happens, if the file is then used by following code.

In addition we avoid showing a non descriptive thumb
in FileInfoElement, which is used when editing meta data of the file.

Resolves: #81279
Releases: master, 8.7, 7.6
Change-Id: Ie68aa02b1b6149ddb7fbda346ac312d3646e260c
Reviewed-on: https://review.typo3.org/53033
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Classes/Resource/Hook/FileInfoHook.php
typo3/sysext/core/Classes/Resource/Processing/LocalPreviewHelper.php