Actions
Bug #88263
openReplacing file with keep filename also keeps file extension
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:- 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.
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