Actions
Bug #99328
closedFile list uploader default action not working
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2022-12-09
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
no-brainer
Is Regression:
Sprint Focus:
Stabilization Sprint
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.
Actions