Create image styles for temporary files

Created on 20 March 2025, about 2 months ago

Problem/Motivation

When adding new media of type Image you can upload your image file, add metadata like title and alt text and then submit the new media. After the upload of the image a thumbnail is shown, but because the file entity created is temporary no image styles are created. This shows a broken image to the user.

Steps to reproduce

  • Make sure that the media module is enabled and that on the form display of media image the image widget shows a thumbnail.
  • Add new media of type image and upload an image
  • When the upload is finished you see a broken thumbnail image

Proposed resolution

Also generate image styles for temporary images as the image itself is also already uploaded to the blob storage and deleting the temporary image will clean up the image styles.

🐛 Bug report
Status

Active

Version

2.3

Component

Code

Created by

🇧🇪Belgium cgoffin

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024