#88263Replacing file with keep filename also keeps file extension
Description
When replacing a file with a file of a different type (different extension) and check “keep current filename”, the system keeps also the current file extension. This leads to problems when calling or precessing this file.
Steps to reproduce:- Upload an png file to FAL
- Replace this file with some jpg file with “keep current filename” option
- You now have png file with jpg content
This leads to problems with processed files:
- Upload a png file to FAL
- Use this file inside a Text & Media element
- Call the page to trigger the file processing
- Replace this file with some jpg file with “keep current filename” option
- Relaod the page with the image
You still will get a png as processed image, even if the original file is a jpg (with png file extension). Even if you rename the file, the processed file will still be a png because the processed files will not get deleted by file renaming.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
History 2
-
Benjamin Kott commented and changed status
NewClosed <span data-processor="relativetime" data-value="2026-08-24T17:27:58+00:00" > 08/24/26, 17:27 </span>- — Replacing file with keep filename also keeps file extension
Resolved by: #106890 — [BUGFIX] Allow replacing files with different mime-type and extension
cf227b18 · Gerrit 89740 — main
aaec618c · Gerrit 90012 — 13.4
- — Replacing file with keep filename also keeps file extension
A clean solution may be, that when hitting “keep current filename” just the filename stays the same but not the file extension.