Issue Bug Closed

#105172Filepicker (Element Browser) closing without creating the link to File

Sebastien Michel 10/01/24, 13:16 updated 12/02/25, 14:32

Description

Using TYPO3 12.4.19. The strangest thing is happening with the Filepicker (TCA type = file) : When the modal window (aka Element Browser) is displayed and the user clicks on a filename to create a relation to that file, the filepicker is closing without making the relation. No error is thrown anywhere. Neither in the browser’s debug console nor the server logs. Moreover, the live Apache logs show that NO QUERY is transmitted to the server upon that event/click (whereas it should send a query like so:

POST /typo3/ajax/file/reference/create?...

The problem is intermittent and I am still unable to find a pattern leading to this strange behavior…. Problem is happening with different browsers… No mod_sec rule is in the way.

The problem appeared when we upgraded our installation to branch 12.

Reviews 6

History 69

  1. Stanislas Rolland commented <span data-processor="relativetime" data-value="2024-10-15T23:01:31+00:00" > 10/15/24, 23:01 </span>

    I can confirm this issue. It is as if sometimes the eventListener was not established.

  2. Mario Lubenka commented <span data-processor="relativetime" data-value="2025-01-27T13:06:57+00:00" > 01/27/25, 13:06 </span>

    We also received a report on that issue.

    Use case: The editor wants to get all references of a file via File List and point it to a different file.
    In our case, a file is linked in link field of a sys_file_reference. Opening the CE in the file relations modal and selecting a new file will not replace the file.

    Normally, linking a file triggers two endpoints: link_resource and link_browser_encodetypolink.

    In that case, link_browser_encodetypolink is not called due to the JS looking for the selector form[name="editform"] [data-formengine-input-name="data[sys_file_reference][94544][link]"] in list_frame, not inside of the modal.

  3. Oliver Hader commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2025-02-10T20:25:11+00:00" > 02/10/25, 20:25 </span>

    Applied in changeset commit:abed0c35d332de9ea3abfaa5e381fd10dcb32075.