Issue Bug Closed

#105945Filelist in list mode doesn’t allow to provide thumbnails for non-image files

Rainer Becker 01/16/25, 08:08 updated 11/13/26, 18:37

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.

Files 1

History 7

  1. Riccardo De Contardi commented <span data-processor="relativetime" data-value="2025-08-04T14:35:53+00:00" > 08/04/25, 14:35 </span>

    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:

    <img draggable="false" loading="lazy" src="/fileadmin/Images/file_example.mp4" width="0" height="0" alt>

    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.

  2. Benni Mack commented and changed status Needs Feedback Closed <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.

    1. is a different problem (local videos in tile view).