Bug #79517
closedReplace function of filelist bypasses file_reference filetype limitation
0%
Description
I was able whit the replace function of the filelist to add a not allowed filetype in the tt_content image element.
1.) Add a Image with the file extension jpg to the filelist
2.) Add it as image to a tt_content element.
3.) Replace the image in the filelist with a file who has an extension which is not allowed in the image element.
Updated by Frans Saris almost 8 years ago
This is hard, maybe even impossible to solve.
As the allowed file types are defined in TCA. And TCA is can be overruled by TCA on again under certain conditions but also by pageTS.
So it's hard to detect what file type is allowed for every sys_file_reference of a file.
Only solution would be not allowing to change the file type when replacing/renaming a file
Updated by Riccardo De Contardi 6 months ago
- Status changed from New to Closed
Albeit the issue is valid there has been no advancement in 7+ years - closing for now.
The topic could be picked up again with a fresh start and a new issue
If you think that this is the wrong decision please reopen it or let me know and I'll do it