Filename conflict

Created on 16 August 2021, about 3 years ago
Updated 4 October 2023, about 1 year ago

Problem/Motivation

When you have two images uploaded to the site... 'my-image.jpg' and 'my-image.png' to the site... the filename replacement for 'my-image.avif' is indeterminate. If you try to load the png file (and both exist) either the security token will fail if turned on, or an avif will be created from the wrong source.

Steps to reproduce

Upload two files with the same name and then attempt to derive a avif file.

Proposed resolution

Looking into Drupal core... when it runs into this situation, it uses both extensions `.jpg.avif` and `.png.avif`.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇦🇺Australia nterbogt

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024