Non-image files should have no thumbnails
When you upload a non-image file in the Backend the system still tries to generate a thumbnail which of course will fail.
The alt-Text will be displayed instead which is also invalid because it currently contains the description list that is used for displaying the file information (like filename and title).
See attached screenshot.
[BUGFIX] Fix thumbnail display for IRRE records
The system will only generate a thumbnail for IRRE records if the
related file object is an image file.
Additionally the UID of the file reference will be used as alternative
text and as title for the thumbnail so that it behaves like the icon
that is used for non-image files.
Reviewed-by: Frans Saris
Tested-by: Frans Saris
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind