[BUGFIX] Avoid unnecessarily fetching file for processing 15/53015/3
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 08:21:12 +0000 (10:21 +0200)
commitad3d3c8907a42ac161d3b40161aa6b792db37947
tree1ba625ff1f7c0119d9c890b6cac7e199f5753ced
parent4f936c9cd5dad5b4a2d2213c303726224cb2a3b2
[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/53015
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/backend/Classes/Form/Element/FileInfoElement.php
typo3/sysext/core/Classes/Resource/Processing/LocalPreviewHelper.php