Issue Task New

#107053Allow renaming text-y files

Garvin Hicking 07/07/25, 18:44 updated 11/10/26, 19:02

Description

Renaming a file like “test.txt” to “test.css” should be possible, if both the “old” and “new” MIME Types are allowed and valid.

Also renaming “test.css” back to “test.txt” should not fail due to MIME types.

Reviews 1

Fix this issue

Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". The changes above were merged or abandoned: read them before you start. How to create a patch

Commit message
[TASK] Allow renaming text-y files Resolves: #107053 Releases: main

History 810

  1. Christian Spoo commented <span data-processor="relativetime" data-value="2026-08-06T18:37:58+00:00" > 08/06/26, 18:37 </span>

    Hm. I cannot reproduce this in current main. Do we really want to fix this for TYPO3 12?

  2. Markus Timtner commented and changed TYPO3 Version 12 14 <span data-processor="relativetime" data-value="2026-10-22T10:47:56+00:00" > 10/22/26, 10:47 </span>

    I can reproduce this in main – created a file “test.txt” in fileadmin -> renamed it to “test.css”
    Got the error: Resource consistency check failed: The MIME type “text/plain” is not allowed for files with the extension “css”. Expected: text/css.

  3. Markus Timtner commented <span data-processor="relativetime" data-value="2026-10-22T10:49:49+00:00" > 10/22/26, 10:49 </span>

    You cant even create a file “text.css” directly with the Media Module.

  4. Gerrit Code Review pushed patch set 1 for main to change 96999 status Accepted Under Review <span data-processor="relativetime" data-value="2026-10-22T11:25:38+00:00" > 10/22/26, 11:25 </span>