Issue Feature Closed

#105649Allow extensions to add custom file selectors

Hannes Lau 11/20/24, 10:54 updated 03/31/26, 09:00

Description

Some fal driver extensions (`cloudinary`, `canto-saas-fal`, maybe others) come with their own file pickers for the TYPO3 backend. They render their own file selectors (“Add file” or “Add image” buttons) into file fields.

A click on the extension specific file selector opens the custom picker.

!Screenshot%202024-11-20%20at%2011.49.09.png!
Screenshot%202024-11-20%20at%2011.50.06.png

To do so, these extensions override the `FileControlContainer` class. If you have multiple fal driver extensions with their own pickers installed, this can lead to conflicts.

Provide a method for these extensions to add their own “Add file” buttons, without overriding the `FileControlContainer` core class.

Reviews 2

Files 2

History 818

  1. Hannes Lau changed attached Screenshot 2024-11-20 at 11.49.09.png description <span data-processor="relativetime" data-value="2024-11-20T10:55:24+00:00" > 11/20/24, 10:55 </span>

  2. Hannes Lau changed subject Allow custom "Add file" buttons Allow extensions to add custom "Add file" buttons <span data-processor="relativetime" data-value="2024-11-20T10:55:38+00:00" > 11/20/24, 10:55 </span>

  3. Hannes Lau changed subject Allow extensions to add custom "Add file" buttons Allow extensions to add custom file selectors description <span data-processor="relativetime" data-value="2024-11-20T11:01:29+00:00" > 11/20/24, 11:01 </span>

  4. Hannes Lau commented <span data-processor="relativetime" data-value="2024-11-20T11:31:18+00:00" > 11/20/24, 11:31 </span>

    The existing `\TYPO3\CMS\Backend\Form\Event\CustomFileControlsEvent` allows to add control elements below the list of files, but not above, where the fileSelectors live.

  5. Georg Ringer commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-03-24T22:10:08+00:00" > 03/24/26, 22:10 </span>

    Applied in changeset commit:5ca0a705b9c83df7c8b722e5036b063892045aea.