[TASK] Deprecate cObject FILE 28/58028/5
authorBenni Mack <benni@typo3.org>
Fri, 24 Aug 2018 16:14:04 +0000 (18:14 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Mon, 10 Sep 2018 22:05:11 +0000 (00:05 +0200)
commitb46dcbf3ee5d8552d8202d36cacf7bf60974781e
treedf8d90f1efe9caee935af230a429a0cb49f34637
parent9036158bf9229c377983390d403935b7fdb87237
[TASK] Deprecate cObject FILE

The cObject FILE has a strange behaviour, and rather became low-level since
Fluid's rise in rendering Frontend.

FILE shows an image if the file is jpg,jpeg,gif,png (but not SVG), and if has a
different file ending, it will check if the file is less than 1MB, it will get its contents
and output that. If the file is 1 byte bigger, nothing is done.

This _magic_ is sketchy, and obsolete, as Fluid offers more flexibility nowadays.

Thus, cObject FILE will be removed from TYPO3 Core in v10.0, however due
to the flexibility of custom cObject, an extension author could just re-implement
the functionality in a custom extension within minutes.

Resolves: #85970
Releases: master
Change-Id: I792ec89486e29051da478c5ec0855d2f9cf913a1
Reviewed-on: https://review.typo3.org/58028
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Documentation/Changelog/master/Deprecation-85970-FileContentObject.rst [new file with mode: 0644]
typo3/sysext/frontend/Classes/ContentObject/FileContentObject.php