Project

General

Profile

Actions

Bug #88263

open

Replacing file with keep filename also keeps file extension

Added by Tim Schreiner over 5 years ago. Updated over 5 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
-
Start date:
2019-05-03
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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.

Actions #1

Updated by Tim Schreiner over 5 years ago

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

Actions

Also available in: Atom PDF