Issue Bug Closed

#99328File list uploader default action not working

Ina Beckmann 12/09/22, 15:36 updated 07/06/23, 20:15

Description

The user tsconfig setting “options.file_list.uploader.defaultAction” does not work because of a simple php-typo in “sysext/filelist/Classes/Controller/FileListController.php”.
At the end of the function “registerDrapUploader()” the variable assignment looks like this:

$this->view->assign('drapUploader', [
    'fileDenyPattern' => $GLOBALS['TYPO3_CONF_VARS']['BE']['fileDenyPattern'] ?? null,
    'maxFileSize' => GeneralUtility::getMaxUploadFileSize() * 1024,
    'defaultDuplicationBehaviourAction', $this->getDefaultDuplicationBehaviourAction(),
]);

There is a falsy comma after ‘defaultDuplicationBehaviourAction’ and the value does not get assigned to the variable.

Reviews 1

History 4

  1. Ina Beckmann changed subject File list uploader default action File list uploader default action not working 12/09/22, 16:02

  2. Benni Mack changed Sprint Focus Stabilization Sprint 06/06/23, 13:11

  3. Annett Jähnichen changed Duplicates #97357 07/06/23, 20:11

  4. Annett Jähnichen commented and changed status New Closed 07/06/23, 20:15

    Hello Ina,

    this issue should be fixed in https://review.typo3.org/c/Packages/TYPO3.CMS/+/76744