Task #56276
closed
Centralize check if file is an image
Added by Alexander Stehlik over 10 years ago.
Updated over 4 years ago.
Description
Currently the check if a file is an image is done on various places in the core, always using the same code:
$isImage = GeneralUtility::inList($GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'], $fileExtension);
It would make sense to centralize this check and maybe optimize the performance.
- Description updated (diff)
- Status changed from New to Needs Feedback
- Assignee set to Mathias Schreiber
Hey Alex,
do you by chance have a list at hand?
- Status changed from Needs Feedback to New
- Assignee deleted (
Mathias Schreiber)
- Target version set to 7.5
No list needed IMHO but a target.
- Target version changed from 7.5 to 7 LTS
- Target version changed from 7 LTS to Candidate for Major Version
on latest master 9.3-dev I've searched for the string "GeneralUtility::inList($GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext']
" and this is the result list:
typo3/sysext/install/Classes/Controller/EnvironmentController.php
typo3/sysext/core/Classes/Resource/Processing/LocalPreviewHelper.php
typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php
typo3/sysext/setup/Classes/Controller/SetupModuleController.php
typo3/sysext/backend/Classes/Form/Element/FileInfoElement.php
typo3/sysext/backend/Classes/Form/FormDataProvider/AbstractItemProvider.php
typo3/sysext/backend/Classes/Form/Container/InlineRecordContainer.php
typo3/sysext/backend/Classes/Controller/File/FileController.php
typo3/sysext/backend/Classes/Controller/ContentElement/ElementInformationController.php
typo3/sysext/backend/Classes/Utility/BackendUtility.php
typo3/sysext/filelist/Classes/FileFacade.php
typo3/sysext/filelist/Classes/FileList.php
- Is duplicate of Task #90305: Centralize imagefile_ext, mediafile_ext and textfile_ext added
- Status changed from New to Closed
Also available in: Atom
PDF