Issue Bug Closed

#88263Replacing file with keep filename also keeps file extension

Tim Schreiner 05/03/19, 13:06 updated 08/24/26, 17:27

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:
  1. Upload an png file to FAL
  2. Replace this file with some jpg file with “keep current filename” option
  3. You now have png file with jpg content

This leads to problems with processed files:

  1. Upload a png file to FAL
  2. Use this file inside a Text & Media element
  3. Call the page to trigger the file processing
  4. Replace this file with some jpg file with “keep current filename” option
  5. 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

  1. Tim Schreiner commented <span data-processor="relativetime" data-value="2019-05-03T13:08:26+00:00" > 05/03/19, 13:08 </span>

    A clean solution may be, that when hitting “keep current filename” just the filename stays the same but not the file extension.

  2. Benjamin Kott commented and changed status New Closed <span data-processor="relativetime" data-value="2026-08-24T17:27:58+00:00" > 08/24/26, 17:27 </span>

    1. — 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