Issue Bug Closed

#79517Replace function of filelist bypasses file_reference filetype limitation

Markus Gehrig 01/27/17, 16:44 updated 06/07/24, 19:58

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.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

History 2

  1. Frans Saris commented 01/27/17, 19:39

    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

  2. Riccardo De Contardi commented and changed status New Closed 06/07/24, 19:58

    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