#105945Filelist in list mode doesn’t allow to provide thumbnails for non-image files
Description
In list mode, the file list uses getFileForLocalProcessing() on storage driver to get the thumbnail.
In LocalPreviewHelper::generatePreviewFromFile() the type of the original file is required to be an image file. Provided thumbnails for non-image files (mp4, pdf …) are replaced by an thumbnail with error message “Not imagefile”.
Instead the provided thumbnail should be checked to be an valid image file.
In thumbnail mode the provided thumbnail is displayed.
(TYPO3 12 + 13)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Related issues 1
Files 1
History 7
-
Garvin Hicking changed category <span data-processor="relativetime" data-value="2025-01-16T08:34:47+00:00" > 01/16/25, 08:34 </span>
-
Riccardo De Contardi commented <span data-processor="relativetime" data-value="2025-08-04T14:35:53+00:00" > 08/04/25, 14:35 </span>
-
Benni Mack changed Sprint Focus On Location Sprint <span data-processor="relativetime" data-value="2026-08-06T16:02:27+00:00" > 08/06/26, 16:02 </span>
-
Wouter Wolters changed Related to #110700 <span data-processor="relativetime" data-value="2026-09-20T09:37:08+00:00" > 09/20/26, 09:37 </span>
-
Wouter Wolters commented <span data-processor="relativetime" data-value="2026-09-20T09:37:33+00:00" > 09/20/26, 09:37 </span>
I think #110700 solves this problem.
-
Wouter Wolters changed status
NewNeeds Feedback <span data-processor="relativetime" data-value="2026-09-20T09:37:50+00:00" > 09/20/26, 09:37 </span> -
Benni Mack commented and changed status
Needs FeedbackClosed <span data-processor="relativetime" data-value="2026-11-13T18:37:23+00:00" > 11/13/26, 18:37 </span>Closing this issue. getFileForLocalProcessing() has to return the file itself, because metadata extraction, processing and hashing rely on it. A driver that provides its own thumbnails should register a custom processor in $GLOBALS[‘TYPO3_CONF_VARS’][‘SYS’][‘fal’][‘processors’] before LocalImageProcessor, like the online media preview processor does. List and tile view both use it.
- is a different problem (local videos in tile view).
I’ve not fully understood the issue description.
The behavior I experience with TYPO3 14.0.0-dev is the following:
1. in Filelist, upload a non-image file like an .mp4 file
2. in Filelist > list view, a “generic” svg icon is provided (mimetypes-media-video in this case)
3. in Filelist > tiles view I see an empty tile, with at the center an odd “1px x 1px” square. Inspecting the element, it
actually seems that TYPO3 tried to build an img tag with the file provided, something like:
4. editing the file metatata, the thumbnail in the “error” gif built with the text “not imagefile…No ext!…”
Behaviors 3 and 4 are actually wrong or,at least, not desiderable.
It should be better to show the same generic svg icon as in the list view, I think.