Distinguish between two files have the same name but a different extension

Created on 26 June 2023, over 1 year ago

Problem/Motivation

Avif::getAvifSrcset() replaces the file extension with .avif, this means we can't identify the original file exactly anymore.
This can cause weird behaviors when two files have the same name but a different extension.

Steps to reproduce

Upload a file name foo.png and another one named foo.jpg.
Both will be converted to foo.avif.

Proposed resolution

We should use foo.png.avif and foo.jpg.avif

🐛 Bug report
Status

Closed: duplicate

Version

1.0

Component

Code

Created by

🇫🇷France prudloff Lille

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

Comments & Activities

Production build 0.71.5 2024